Rabu, 27 Juli 2016

Programming in OOP : Types of inheritance

In this article we will look at different types of inheritance and what types of inheritance are supported in Java. There are five types of inheritance based on how many base classes and derived classes are there in the inheritance relationship. They are as follows: Simple inheritance Multi-level inheritance Multiple inheritance Hierarchical inheritance Hybrid inheritance Let’s look at each one of these five types of inheritance in more detail.   Simple inheritance: This is the most frequently used and most simple of the five types of inheritance. In this type of inheritance there is a single derived class which inherits

The post Programming in OOP : Types of inheritance appeared first on Coding Security.


Programming in OOP : Types of inheritance
read more

Tidak ada komentar:

Posting Komentar