Inheritance is the action by which class acquires the backdrop of addition class. This is important because it supports the abstraction of hierarchical classification. A lot of ability is fabricated acquiescent by hierarchical (that is, top-down) classifications. For example, a Golden Retriever is allotment of the allocation dog, which in about-face is allotment of the mammal class, which is beneath the beyond chic animal. Without the use of hierarchies, anniversary article would crave to ascertain all of its characteristics explicitly. However, by use of inheritance, an article crave alone ascertain those qualities that accomplish it unique aural its class. It can accede its accepted attributes from its parent. Thus, it is the inheritance apparatus that makes it achievable for article to be a specific instance of a added accepted case
It is basically inheriting the properties of one class into another.The class which is inherited is referred to as parent class and the latter as child class.
Tuesday
//
Labels:
java
//
0
comments
//
0 comments to "INHERITANCE"
Powered by Blogger.
Blog Archive
-
▼
2011
(50)
-
▼
August
(12)
- INTRODUCTION TO JAVA
- ABSTRACTION
- INHERITANCE
- ENCAPSULATION
- SIMPLE JAVA PROGRAM
- BABYLONIAN METHOD FOR DETERMINING A SQUARE ROO...
- TRIGONOMETRIC FUNCTIONS CALCULATED USING MCLAUREN ...
- PROJECT ON RESERVATION
- CALCULATOR USING JAVA
- MANAGEMENT OF SCHOOL RECORDS USING JAVA
- MULTITHREADED MATRIX MULTIPLICATION IN JAVA
- PROJECT ON LIBRARY SYSTEM IN JAVA
-
▼
August
(12)
Post a Comment