7. Working with Inheritance

Note:

  • there is overlap between topics, which is unavoidable due to the organisation of the objectives
  • Touched on topics are introduced, but covered in other sections in much greater detail


1. Describe inheritance and its benefits


Topics:

  • Implementation inheritance
  • Interface inheritance



2. Develop code that demonstrates the use of polymorphism; including overriding and object type versus reference type


Topics:

  • Overriding



3. Determine when casting is necessary


Topics:

  • Casting supertypes



4. Use super and this to access objects and constructors


Topics:

  • super()
  • this()



5. Use abstract classes and interfaces


Topics:

  • abstract classes
  • interfaces
  • static and default methods



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