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
what type of question are asked in thoughtworks pair programming round ?
What is oops and its features?
Which method cannot be overridden?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
what are the realtime excercises in C++?
Can a destructor be called directly?
What is object and example?
Why is static class not inherited?
#include
#include
What is class in oop with example?
What is oops concept with example?
Why is destructor used?
What is destructor give example?
What is use of overloading?