// fruit example

class Fruit { }
class Apple extends Fruit {}

// What does $extends$ do? $Apple$ is a subclass of $Fruit$. Thus,
// $Apple$ inherits the properties (not much yet) from the superclass ($Fruit$)
// So, you won't need to reuse too much code. Ain't life sweet? ;-)

// Actually, I'm taking some shortcuts here, because I've ignored
// constructors (using the defaults) and encapsulation (using "default
// visibility"). You DO need to worry about these things!

public class inherit1_fruit {
    public static void main(String[] args) {
	Apple A = new Apple(); // create an $Apple$ object
    }
}
