View RSS Feed

Recent Blogs Posts

  1. IS-A Relationship

    by , 04-26-2012 at 05:31 PM
    IS-A means this object is that objectís type. Now see, how inheritance is achieved by extends keyword
    Java Code:
    public class Animal{
    }
    
    public class Mammal extends Animal{
    }
    
    public class Reptile extends Animal{
    }
    
    public class Dog extends Mammal{
    }
    Following are true for the Object Oriented terms, based at above example:
    • Mammal classís superclass is animal.
    • Reptile classís superclass is
    ...
    Categories
    Inheritence