星期二, 6月 03, 2008
Quiz 3
通過名單
9527118
9527129
9527158
9526238
9526240
9526261
9526319
9526350
9526353
9426231
9326263
9325120
9325146
方彥順
9527118
9527129
9527158
9526238
9526240
9526261
9526319
9526350
9526353
9426231
9326263
9325120
9325146
方彥順
星期一, 6月 02, 2008
Lab Java Constructor
Use Display 4.14 to call 4.13 (2nd ed.) or
Display 4.12 to call 4.11 (1st ed.).
After you finish the above, try the following
Date birthday = new Date("Jan",1,2000);
birthday.Date("Feb",1,2000);
birthday.setDate("Feb",1,2000);
birthday=new Date("Mar",1,2000);
Display 4.12 to call 4.11 (1st ed.).
After you finish the above, try the following
Date birthday = new Date("Jan",1,2000);
birthday.Date("Feb",1,2000);
birthday.setDate("Feb",1,2000);
birthday=new Date("Mar",1,2000);
Quiz 6-2
1. Define a class called Counter whose objects count things. An object of this class records a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the count by 1, and to decrease the count by 1.
2. Define a Complex class with complex addition.
3. What is Abstract Data Type (ADT)?
4. What is "Overloading"? Why is it useful?
5. Write a program to implement a method that can do additions of 2 fractions. You will implement a class called Fraction consisting of a numerator and a denominator.
6. Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works.
2. Define a Complex class with complex addition.
3. What is Abstract Data Type (ADT)?
4. What is "Overloading"? Why is it useful?
5. Write a program to implement a method that can do additions of 2 fractions. You will implement a class called Fraction consisting of a numerator and a denominator.
6. Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works.
訂閱:
文章 (Atom)