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”