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
What is abstraction in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
State what is encapsulation and friend function?
Write a program to reverse a string using recursive function?
Can private class be inherited?
What is overloading and its types?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is abstraction encapsulation?
What is destructor in oop?
What is oops?what is its use in software engineering?
What is the diamond problem in inheritance?
What is variable example?
What is destructor example?
Can main method override?
What are oops methods?