标签:-- make 新手 来讲 div test return str span
5.object和Class的深入理解---属性和方法 (视频下载) (全部书籍)
本章源码
class MyTestDate {
int year;
int month;
void setDate(int y, int m) {
year = y;
month = m;
}
String toStringabc() {
return "" + year + "/" + month ;
}
}
public class Test {
public static void main(String[] args) {
/* make the coin(硬币) based on the template(模板).@马克-to-win */
MyTestDate date = new MyTestDate();
MyTestDate date1 = new MyTestDate();
System.out.println("The initial date is:" + date.toStringabc());
date.setDate(2009, 7);
。。。。。。。。。。。。。。。。。。。。
详细内容:http://www.mark-to-win.com/index.html?content=JavaBeginner/javaUrl.html&chapter=JavaBeginner/JavaBeginner2_web.html#PropertyChange
标签:-- make 新手 来讲 div test return str span
原文地址:https://www.cnblogs.com/mark-to-win/p/9691894.html