Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
1Activity
×
0 of .
Results for:
No results containing your search query
P. 1
JAVA_TM_Inheritance

JAVA_TM_Inheritance

Ratings: (0)|Views: 142|Likes:
Published by MITMCA

More info:

Published by: MITMCA on Aug 28, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, PPT, TXT or read online from Scribd
See More
See less

09/06/2011

pdf

text

original

 
1
Inheritance
Classes and SubclassesOr Extending a Class
 
2
Inheritance: Introduction
Reusability--building new components byutilising existing components-is yet anotherimportant aspect of OO paradigm.
It is always good/productive if we are able toreuse something that is already exists ratherthan creating the same all over again.
This is achieved by creating new classes,reusing the properties of existing classes.
 
3
Inheritance: Introduction
This mechanism of deriving a new classfrom existing/old class iscalled inheritance.
The old class is known as base class, superclass or parent class;and the new class isknown as sub class, derived class, or childclass.Parent Child
Inheritedcapability

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->