What is base class and derived class with example?

Inheritance enables you to create new classes that reuse, extend, and modify the behavior defined in other classes. The class whose members are inherited is called the base class, and the class that inherits those members is called the derived class . A derived class can have only one direct base class.

Sizin İçin Seçtik  What inheritance does Java support?

Leave a Reply

Your email address will not be published. Required fields are marked *