WindowsPhone.java

package Lab3;

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

public WindowsPhone()
{
deviceType = "Windows Phone";
}

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

……………………………………………………………………………………………………….
Note: The Screen Shot and client code is posted in the Tab “Lab_3”

Leave a Reply

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