Answer Posted / anshu sharma
Hierarchy is used to define more specialized classes based
on a preexisting generalized
class.Example we have VEHICLE class and we can inherit this
class make more specialized
class like CAR, which will add new attributes and use some
existing qualities of the
parent class.Its shows more of a parent-child relationship
.This kind of hierarchy is called
inheritance
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Why interface is used?
Write a c++ program to display pass and fail for three student using static member function
class type to basic type conversion
Why polymorphism is used in oops?
What is oops and its features?
What is the use of oops?
what type of question are asked in thoughtworks pair programming round ?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why do we use oops?
What is static in oop?
What is difference between pop and oop?
What are the advantages of polymorphism?
What is difference between abstraction and encapsulation?
Why is abstraction used?