Logo 
Search:

Java Article

Submit Article
Comments on Inheritance or Superclass - Subclass Concept
Category: Java (Fundamental)    Author: Abelardo Fischer

This article explains about Superclass and Subclass concept or inheritance in java with examples.


Emanul Sk
Emanul Sk from IndiaSep 26
Very simple code cleared my concept. Thanks.
But there's an error,
Teacher tObj = new Teacher("Daniel","Martin","English","6000","Primary Teacher");
6000 is of int datatype.


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].