PROGRAM CHAPTER 8: CLASSES & OBJECTS
A DEEPER LOOK (8.1 - 8.6)


8.1 Time1 class declaration maintains the time in 24-hour format
  • Source Code Time1.java


8.2 Time1 object used in an application. (Part 1 of 2.)

  • Source Code Time1Test.java

  • Output









8.3 MemberAccessTest.java
  • Source Code


8.4 This used implicitly and explicitly to refer to members of an object. (Part 2 of 2.)
  • Source Code ThisTest.java

  • Output





8.5 Time2 class with overloaded constructors. (Part 1 of 3.)
  • Source Code Time2.java


8.6 Overloaded constructors used to initialize Time2 objects. (Part 1 of 3.)
  • Source Code Time2Test.java

  • Output






Komentar

Postingan populer dari blog ini

Class Date