Discuss a single inheritance with an example
Answers
Answered by
2
Answer:
When one class inherits another class, it is known as single level inheritance. Let's see the example of single level inheritance which inherits the fields only. In the above example, Employee is the base class and Programmer is the derived class.
Explanation:
Please make as Brainlist answer
Similar questions