11 Object-Oriented Programming: Inheritance

Objectives

In this chapter you’ll:

  • Understand how inheritance promotes software reusability.

  • Create a derived class that inherits attributes and behaviors from a base class.

  • Override base-class methods in derived classes.

  • Use access modifier protected to give derived-class methods access to base-class members.

  • Access base-class members with base.

  • Understand how constructors are used in inheritance hierarchies.

  • See an overview of the methods of class object, the direct or indirect base class of all classes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset