Chapter 6
Inheritance and Polymorphism
OBJECTIVES
- To introduce constructor, its importance and functionality
- To explain default constructor
- To explain constructor with parameters or arguments
- To define overloaded constructors
- To introduce Math class from java.lang package
- To explain different methods of Character class
- To create immutable strings with String class
- To manipulate strings with StringBuffer class
- To manipulate strings using StringBuilder class
- To explain inheritance and its types
- To call base class constructor, data members and member functions
- To implement Object-Oriented Dog application
- To introduce polymorphism with Instrument class
- To differentiate aggregation from inheritance
- To introduce java.lang.Object class
- To check ...
Get JAVA Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.