What is the difference between superclass and subclass?


A super class is a class that is inherited whereas sub class is a class that does the inheriting.



Explore posts in the same categories: C/C++ Interview Questions, Java Interview Questions, Object Oriented Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What is difference between overloading and overriding?
  • a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship...
  • What is static in java?
  • Static means one per class, not one for each object no matter how many instance of a class might exist....
  • What is Overriding?
  • When a class defines a method using the same name, return type, and arguments as a method in its superclass,...
  • What is Overriding?
  • When a class defines a method using the same name, return type, and arguments as a method in its superclass,...
  • How would you implement inheritance using VB.NET/C#?
  • When we set out to implement a class using inheritance, we must first start with an existing class from which...
  • 21 Java Interview Questions
  • What restrictions are placed on method overloading?Two methods may not have the same name and argument list but different return...
  • What is an EJB Context?
  • EJBContext is an interface that is implemented by the container, and it is also a part of the bean-container contract....
  • What is an EJB Context?
  • EJBContext is an interface that is implemented by the container, and it is also a part of the bean-container contract....
  • What is the immediate superclass of Menu?
  • MenuItem...
  • What is the immediate superclass of the Applet class?
  • Panel...

    Comment:

    You must be logged in to post a comment.