what is inheritance
Answers were Sorted based on User's Feedback
inheritance is one of the property of OOP's(Object Oriented
Programming)by using this a class can take the feature of
another one and can add own feature also .
class which take the feature is known as
the "CHILD",or "DERIVED" class . And from which it takes
the feature is known as the "PARENT",or "BASE" class.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vidhun
object of one class acquires the properties of objeects of
another class
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / siva
inheritance is process of creating a new class from
existing class
base------->derived class
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nupur dhawan
Inheritance as the word implies to inherit or we can say
adopting the properties of parent by a child likewise a
child adopts the properties of their parents in the same
way in java or other Programming Language if a child class
adopts the properties of the parent class then it is simply
called as INHERITANCE.
here the child class can used the methods build in parent
class & can create his additional methods.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rahul_kumar007
it means " we've 2 class class a,class b
with the help of class b we can inherit property of class a.
as follow:-
class a{
private:
----
------
public:
----};
class a:public b{
------
};
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / amit
Check the Following link..
<a
href=http://www.allinterview.com/showanswers/1914>Inheritence</a
>
Is This Answer Correct ? | 0 Yes | 2 No |
sir,i am a 3rd yr student of computer engineering. i need atleast 10 previous year's placement papers of hcl,infosys & wipro. please send me these papers as early as possible.thanx for giving me your precious time.
Streams can be for writing the data to a.txt file
can you justify your answer regarding output of following source-code: #include<stdio.h> #include<conio.h> void main() { clrscr(); if(printf("");) { printf("i am able to work in your company :"); } else { printf("your company is not able for having my knowledge :") } getch(); }
What is meant by Insertion loss?
which is the proper pipe for salt water line
What is meant by STL?
hey,,,hi have taken an emergency date of 21st july...i was continuously checking for dates n i was not able to get a normal date n my school is starting from 8th of september...so plz tell me can i get a rejection based on this, that i have taken an emergency date?????
how to identify analog and digital in instrumentation
1 Answers GS Engineering Construction,
A bar of steel 24 mm in diameter was subjected to a tensile load of 60 kNs and measured extension on a 20-cm gauge length was 0.009 cm and the change in diameter was 0.00375 cm. Calculate the Bulk modulus?
give me some knowledge about automation on which asked on interview
100,1,99,2,98,3...... write a C pgm to generate this series with user input for the number of nos. to b displayed..
Write a program to count the no. of occurrence of word in given string Ex- Ram is good boy. Ram is doing good job. Ram – 2 is – 2 good – 2 boy – 1 doing –1 job – 1