Answer Posted / sujatha
hierarchical inheritance:
It is a type of inheritance where one or more derived
classes is derved from common( or one ) base class .
ex:
class A
{
// definition of class A
};
class B : public A //derived from A
{
// definition of class B
};
class C : public A //derived from A
{
// definition of class c
};
| Is This Answer Correct ? | 134 Yes | 22 No |
Post New Answer View All Answers
write a C++ program for booking using constructor and destructor.
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Explain the advantages of inheritance.
What is object-oriented programming? Webopedia definition
How can you overcome the diamond problem in inheritance?
Why is object oriented programming so hard?
What is meant by oops concept?
How to call a non virtual function in the derived class by using base class pointer
what are the realtime excercises in C++?
What are the 4 main oop principles?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is multilevel inheritance explain with example?
write knight tour problem which is present in datastructure
Can main method override?
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?