Java Reference
In-Depth Information
Inheritance showing overriding
Example code
Class x {
int a, b
X (int p, int q)
{
p= a;
q= b;
}
Void show ( )
{
System.out.println (“a and b: “+ i +” “+ j);
}
}
Class y extends x {
Int r;
Search WWH ::




Custom Search