json.serialize.test.entity
Class Car

java.lang.Object
  extended by json.serialize.test.entity.Vehicle
      extended by json.serialize.test.entity.Car
Direct Known Subclasses:
Lancer

public abstract class Car
extends Vehicle

An abstract car class for demonstration. It implements Vehicle partially.


Constructor Summary
Car()
           
 
Method Summary
 java.lang.String getMode()
          Returns the travelling mode of the car
 java.lang.String getName()
          Returns the name of the car
 
Methods inherited from class json.serialize.test.entity.Vehicle
getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Car

public Car()
Method Detail

getName

public java.lang.String getName()
Returns the name of the car

Overrides:
getName in class Vehicle
Returns:
name of Car

getMode

public java.lang.String getMode()
Returns the travelling mode of the car

Specified by:
getMode in class Vehicle
Returns:
Travelling mode of Car