Single Inheritance

If a class derived from one only one parent class then that inheritance is called as Single Inheritance . To inherit a class from parent class we have to use extends keyword. The parent class fuctions can be called using child class objects.



Single Inheritance Program



Single Inheritance Program Output