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
Which language is not a true object oriented programming language?
Why do we use oops?
write a program to find 2^n+1 ?
What is for loop and its syntax?
Is this job good for future? can do this job post grduate student?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
Is abstract thinking intelligence?
Why do we use encapsulation in oops?
What does <> mean pseudocode?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Why do we need polymorphism in c#?
What is purpose of inheritance?
write a program that takes input in digits and display the result in words from 1 to 1000
Write a program to sort the number with different sorts in one program ??
Why it is called runtime polymorphism?