printPersonInfo是什么意思

package com.fanshe1.java;

public class Testaaa{
 private String name;
 private int age;
 private int height;
 
 public Testaaa() {
  
 }

 public Testaaa(String name) {
  super();
  this.name = name;
 }

 public Testaaa(String name, int age) {
  super();
  this.name = name;
  this.age = age;
 }

 public Testaaa(String name, int age, int height) {
  super();
  this.name = name;
  this.age = age;
  this.height = height;
 }

 public String getName() {
  return name;
 }

 public void setName(String name) {
  this.name = name;
 }
 
 public void printPersonInfo() {
  System.out.println(name + "," + age + "," + height);
 }
}

这句话除了标题上的那个句子其他都能看懂。

liuyukang
浏览 1883回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java