What is multiple inheritance? Give Example
Answer Posted / palsaniya sadikhasan, meta.
a class is derived from an existing class in multiple level.
e.g.
class abc
{
int a;
public:
void getdata();
};
class xyz public:abc
{
int b;
public:
void getinput();
}
class pqr public:xyz
{
int c;
public:
void show();
}
| Is This Answer Correct ? | 9 Yes | 22 No |
Post New Answer View All Answers
What is ambiguity in inheritance?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
Why is oop useful?
Why is polymorphism needed?
which feature are not hold visual basic of oop?
How is polymorphism achieved?
What does enum stand for?
Is react oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is encapsulation in oop?
Why is polymorphism used?
What are the important components of cohesion?
Who invented oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What are the types of abstraction?