Write a C++ program with two classes named as “add”, “sub” to perform addition and subtraction of two given numbers and inherit these values to another class named as “remainder” to find the remainder of these values. Mention the type of inheritance.
Answers
Answered by
1
Answer:
Types of Inheritance in C++
- Single Inheritance.
- Multiple Inheritance.
- Hierarchical Inheritance.
- Multilevel Inheritance.
- Hybrid Inheritance (also known as Virtual Inheritance)
Explanation:
please mark me down as a brainliest answer ❣️
Similar questions