Iphone.java

package Lab3;

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

public iPhone()
{
deviceType = "iPhone";
}

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

Leave a Reply

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