| Mobile | RSS

Inheritance Example Output

Java Tutorial : Inheritance in Java – Part 2, Example

In the last article we saw the inheritance in java. The following syntax shows how to implement single level inheritance: class A { //body of Class A } class B extends A { //body of Class B } class C extends A { //body of Class C } In the preceding syntax, the extends keyword [...]

[ More ] 7th Sep, 2009 | No Comment | Posted in Java