Java


Java

Inheritance, abstract class, interface, enumerate type

CarApp3.zip

Example from the last tutorials is improved. We made an abstract class for car representation. Than, base on it, we create class Car. In class Car we add a static method and and a static variable.

CarApp4.zip

We add an interface.

CarApp5.zip

We use enumerate type.

MoreEnums.zip

More about enumerate type.