java.lang.Object | +--SuperClass
SuperClass.java - A super class for the demonstration of inheritance.
| Constructor Summary | |
(package private) |
SuperClass()
Default no-arg constructor that initializes the instance data to 0 and increments the number of SuperClass objects in existence. |
(package private) |
SuperClass(int inita,
int initb)
Constructor that provides initial values for the instance data. |
| Method Summary | |
int |
methodOne()
methodOne |
int |
methodTwo()
methodTwo |
java.lang.String |
toString()
Return a string representation of the object. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
SuperClass()
SuperClass(int inita,
int initb)
inita - Initial value for instance data a.initb - Initial value for instance data b.| Method Detail |
public int methodOne()
public int methodTwo()
public java.lang.String toString()