JAVA
Monday, December 05, 2005
"Lab 12-5-2005 (1) Using "this""
public void setDate(int month, int day, int year)
{
this.month = monthString(month);
this.day = day;
this.year = year;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
只要改這一部分就可以了,不用多加三個變數,只要用THIS就OK了...
posted by GG at
3:37 AM
0
Comments:
Post a Comment
<< Home
Previous Posts
Homework 11-28-2005
display 4.7 4.8
Class Definition (2)
Class Definition
非視窗化的輸入
更改版的lab1
10月31日lab1
Fibonacci numbers.
Fibonacci numbers
最大最小值
About Me
Name:
GG
View my complete profile
0 Comments:
Post a Comment
<< Home