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 |
i am going to give interview for the post of ibps po..so there is a question in my mind which is "Being an electonics and communication engineer how can you help in banks, I mean whats the application of your education in banking."
what is difference between shell commands and shell scripting commands or both r same?
friends help me..am a btech fresher.. wt is the eligibility criteria for TCS???? like %...repli me clearly from x onwards..
synchronous and asynchronous transmission
what kind of questions generally asked for ME admission, (specially in RGPV).
what is the use of fact tables in your banking project doveleped with teradata?
what is the differences between software engineering and other engineering disciplines.
Streams can be for writing the data to a.txt file
#include<stdio.h> void main() { int x,y,z; x=1; y=1; z=1; z=++x||++y&&++z; printf("%d%d%d",x, y ,z); }
Discuss about WAP architecture in detail.
Person who dicided to go to weekend trip should not exceed 8 hrs driving in a day. Average speed of forward journey is 40 miles/hour . Due to traffic in sundays ,in return journey average speed is 30mph . How far he can select a picnic spot ?
in his salary a man spends 10% of rent,15%foodand 20% on cloth then how mucj he says