O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required