SmartPhone.java


package Lab3;

public class SmartPhone extends MobileDevice
{
private String deviceType = new String();

public SmartPhone()
{
deviceType = "Smart Phone";
}

public String getDeviceType()
{
deviceType = super.getDeviceType() +" -> "+ deviceType;
return deviceType;
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *