Inheritance in java

Java supports inheritance. In other words, it is possible to derive one class from another class in this programming language. For instance, if you need to create a new class, which is an extension of an existing class, then you can simply derive this new class from an existing class. This allows the new class to access the elements already implemented in the existing class. In this case, the new class is called the derived class and the existing class is referred to as the super class.


For any query or issue, feel free to discuss on http://discuss.eduguru.in