为了账号安全,请及时绑定邮箱和手机立即绑定
public class Initial {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Telephone tel1 = new CellPhone();
		Telephone tel2 = new SmartPhone();
		tel1.call();
		tel1.message();
		tel2.call();
		tel2.message();

	}

}

结果:

矩形的周长公式为:2(长+宽)

矩形的面积公式为:长*宽

圆形的周长公式为:2πr

圆形的面积公式为:πr2


是这样吗


正在回答

代码语言

0 回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号