Friday 6 January 2012

Java Concepts:Inheritance

Inheritance- The term inheritance refers to the fact that one class can inherit part or all of its structure and behavior from another class.The class that does the inheriting is called subclass .Example:
class B extends A{
       ........................
      .........................
    }
     Live Example:
                                           

No comments:

Post a Comment