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
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’.
Why is polymorphism needed?
Why do we use class in oops?
Can a varargs method be overloaded?
What is multilevel inheritance explain with example?
What is the full form of oops?
Why do we use polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are properties in oop?
Is html an oop?
Can we define a class within the interface?
What is for loop and its syntax?
What is polymorphism oop?
Can private class be inherited?
What is the purpose of polymorphism?