give me the defination of inheritance?
Answers were Sorted based on User's Feedback
inheritance means object of one class acquire the properties of objects of another class.
inheritance primarily for the purpose of code reuse.
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / munis
one class property derived another class by using extends keyword
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nidhi
inheritance is a aquer the base class property aquer the derived class property
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vishal
Inheritance allows a class to inherit attributes and
behaviors (methods) of another class.This allows creation
of brand new classes by abstracting out common attributes
and behavior.
The idea of inheritance is to go from general to specific
by factoring out commonality.
1.Code Reuse
2.Better overall design by organizing classes
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / yuvi
An inheritance is money or property which you receive from
someone who has died.
like: she feared losing her inheritance to her stepmother.
or your inheritance is the particular characteristics or
qualities which your family or ancestors had and which you
are born with
like: Eye colour shows you genetic inheritance.
Is This Answer Correct ? | 1 Yes | 2 No |
What is a stl vector?
how to overload << and >> operator in c++
Distinguish between: a) Normal layout & Print Layout views b) Windows Clipboard & office Clipboard c) Save & Save As Commands d) Program File & Data File e) Pie Charts & Barr Charts
what is the acronym of the term 'C.O.M.P.U.T.E.R' ?
17 Answers Config Systems, Google, Wipro,
write a c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.
What is the STL?
What are the symptoms of stl?
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
What is the disadvantage of templates ?
How the STL's are implemented, What the difference between templates and STL?
wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value
What is Template Specialization?