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
Why do we use class?
What is inheritance in oop?
What is the problem with multiple inheritance?
What is encapsulation c#?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is overloading and its types?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is overriding vs overloading?
What is abstract class in oop?
What is the real time example of inheritance?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is interface in oop?
What is protected in oop?
What is overloading in oop?