1. Java Class Design


Note:

  • 1.1, 1.2, 1.3 and 1.6 are covered in OCAJP, so not much code here for them.


1. Implement encapsulation





2. Implement inheritance including visibility modifiers and composition





3. Implement polymorphism





4. Override hashCode, equals, and toString methods from Object class





5. Create and use singleton classes and immutable classes





6. Develop code that uses static keyword on initialize blocks, variables, methods, and classes





Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License