Chapter 5. Constructors, Inheritance, and Polymorphism: The Snowball Fight

With the ability to create custom objects, you begin your adventure into object-oriented programming (OOP). However, you have yet to learn some other very important characteristics of objects. In this chapter you will explore the essential techniques of OOP and learn how

  • To write a constructor to customize the way a class is instantiated

  • To overload constructors for flexibility

  • Inheritance is used to reuse code

  • Polymorphism is used in OOP

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

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