2015年12月22日

对象作为返回值类型&&链式编程

摘要: package com.imooc;class Student{ public void study(){ System.out.println("学生学习"); }}class StudentDemo{ public Student getStudent(){ ... 阅读全文

posted @ 2015-12-22 13:41 张明明_1 阅读(359) 评论(0) 推荐(0)

抽象类名以及接口作为形式参数

摘要: 抽象类名作为形式参数,但是接收的是具体的对象package com.imooc;abstract class Person{ public abstract void study();}class PersonDemo{ public void method(Person p){ ... 阅读全文

posted @ 2015-12-22 13:05 张明明_1 阅读(469) 评论(0) 推荐(0)

导航