编写一个类:person,包含一个属性Name及方法getName()
package person; public class person { private String Name; public String getName() { System.out.println("小米"); return Name; } public static void main(String[] args) { person person = new person(); person.getName(); } }