what is the basic concept of inheritance?

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


Please Help Members By Posting Answers For Below Questions

Which language is not a true object oriented programming language?

646


Why do we use oops?

597


write a program to find 2^n+1 ?

1555


What is for loop and its syntax?

599


Is this job good for future? can do this job post grduate student?

1694






Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3849


Is abstract thinking intelligence?

601


Why do we use encapsulation in oops?

529


What does <> mean pseudocode?

626


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2011


Why do we need polymorphism in c#?

694


What is purpose of inheritance?

645


write a program that takes input in digits and display the result in words from 1 to 1000

1995


Write a program to sort the number with different sorts in one program ??

1924


Why it is called runtime polymorphism?

579