package Test; public class ShouJi { public static void main(String[] args) { MobilePhone phone2=new MobilePhone("HUAWEI","13800000000","130432100000000000"); phone2.display(); } } abstract class Phone{ abstract void display(); } class MobilePhone extends Phone{ String band,number,dizhi; MobilePhone(String band,String number,String dizhi){ this.band=band; this.number=number; this.dizhi=dizhi; } void display(){ System.out.println("Code="+number); } }