What is multiple inheritance? Give Example
Answer Posted / sadikhasan,meta
Multiple inheritance means duplicate copy of base class is
derive into child class. which explain by following example.
class A
{
}
class B: public A
{
}
class C:public A
{
}
class D:public B,public C //duplicate data
{
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is balance factor?
What is the use of oops?
What is multilevel inheritance in oop?
can inline function declare in private part of class?
What is polymorphism in oop example?
What is oops with example?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is encapsulation with real life example?
#include
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is a class in oop?
c++ program to swap the objects of two different classes
Can we create object of interface?
What does and I oop mean in text?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?