Java基础入门(传智)暑期预习笔记(十三)
构造方法的定义package com.itheima01;public class Person { //成员变量 private String name; private int age; public void setName(String s) { name=s; } public String getName() { return name; } public void setAge(int a) { age=a; } public int