Saturday, 27 July 2013

Relationship in java

                                                                     RELATIONSHIPS
IS-A   :  Is-A   relation is that relation in which the child class inherits all the properties of super class. The best e.g of explaining this relationship is as follow, Rose IS-A flower.In this example flower is the super class and Rose is the child class .Rose inherits all those properties which a flower have.

HAS-A : Has -A relation is that relation in which the child class do not have all properties of super class.In this type of relation the child class inherits only some properties of super class .


Related Posts:

  • Top wesbites to learn Java Wish to create your software games and web applications .Here i suggest some resource for you. Now you habe to practice the things which you read theoretically. It will help to sharp your skills .Apart from us LANG-ADDA the… Read More
  • History of JAVA Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as  &nbs… Read More
  • Access modifers in java  Java's access specifiers are  : - 1. Public, 2. Private, 3.Default, and 4.Protected.  Java also defines a default access level. protected applies only when inheritance is involved. The other access specifiers… Read More
  • Installing JAVA AND Setting CLASS PATH  Installing JAVA AND Setting CLASS PATH        Install jdk 7.4(latest version) or any  other lower                    version.   &… Read More
  • JAVA : Collections                     Collections And Framework                           … Read More

0 comments:

Post a Comment