This example of inheritance is taken from the Java Tutorial:
class MountainBike extends Bicycle {
// new fields and methods defining a mountain bike would go here
}
This example of inheritance is taken from the Java Tutorial:
class MountainBike extends Bicycle {
// new fields and methods defining a mountain bike would go here
}
The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.