摘要:私有化Father类 private /定义类名并将其私有化,进行赋值。以下是我们为大家整理的,相信大家阅读完后肯定有了自己的选择吧。
TEXT类
package 实训j; public class Fathertext {//定义测试类 public static void main(String[] args) {//在main方法中创建child对象 FatherChild child=new Father()new Child(); childintroFather();//调用introFather方法 } }
广告联系- 免责声明- 网站地图- 完善信息 渝ICP备12006622号-2
学校名称: 学校简介: 学校联系电话: 学校招生信息:
换一张