D11接口,多态

所属分类Applet
开发工具:Java
文件大小:35KB
下载次数:0
上传日期:2019-05-18 19:50:50
上 传 者傻giao
说明:  接口是功能的集合,同样可看做是一种数据类型,是比抽象类更为抽象的”类”。 接口只描述所应该具备的方法,并没有具体实现,具体的实现由接口的实现类(相当于接口的子类)来完成。这样将功能的定义与实现分离,优化了程序设计。 多态是继封装、继承之后,面向对象的第三大特性。 Java作为面向对象的语言,同样可以描述一个事物的多种形态。如Student类继承了Person类,一个Student的对象便既是Student,又是Person。 Java中多态的代码体现在一个子类对象(实现类对象)既可以给这个子类(实现类对象)引用变量赋值,又可以给这个子类(实现类对象)的父类(接口)变量赋值。
(Interface is a collection of functions. It can also be regarded as a data type. It is a more abstract class than abstract class. Interfaces only describe the methods they should have, but they are not implemented in detail. The implementation of interfaces is accomplished by the implementation class of interfaces (equivalent to the subclass of interfaces). In this way, the definition and implementation of functions are separated, and the program design is optimized. Polymorphism is the third feature of object-oriented after encapsulation and inheritance. Java, as an object-oriented language, can also describe many forms of a thing. If the Student class inherits the Person class, the object of a Student is both Student and Person.)

文件列表:[举报垃圾]
D11接口,多态, 0 , 2018-05-21
D11接口,多态\.classpath, 301 , 2018-05-21
D11接口,多态\.project, 394 , 2018-05-21
D11接口,多态\.settings, 0 , 2018-05-21
D11接口,多态\.settings\org.eclipse.jdt.core.prefs, 598 , 2018-05-21
D11接口,多态\bin, 0 , 2019-05-07
D11接口,多态\bin\cn, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo1, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo1\MyInterface.class, 189 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo1\MyInterface1.class, 560 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo1\Test.class, 515 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo2, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo2\MyInter.class, 227 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo2\MyInter1.class, 485 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo2\Test.class, 523 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo3, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo3\A.class, 117 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo3\B.class, 117 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo3\C.class, 494 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo3\D.class, 260 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Animal.class, 289 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Cat.class, 493 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Fu.class, 495 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Somking.class, 135 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Student.class, 534 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Test.class, 798 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo4\Zi.class, 506 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo5, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo5\Fu.class, 527 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo5\Test.class, 660 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo5\Zi.class, 529 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6\Animal.class, 275 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6\Person.class, 291 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6\Student.class, 617 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6\Teacher.class, 513 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo6\Test.class, 757 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo7, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo7\Animal.class, 289 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo7\Cat.class, 596 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo7\Dog.class, 591 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo7\Test.class, 798 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8, 0 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8\Computer.class, 836 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8\Keyboard.class, 628 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8\Mouse.class, 619 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8\Test.class, 689 , 2019-05-07
D11接口,多态\bin\cn\itcast\demo8\USB.class, 140 , 2019-05-07
D11接口,多态\src, 0 , 2018-05-21
D11接口,多态\src\cn, 0 , 2018-05-21
D11接口,多态\src\cn\itcast, 0 , 2018-05-21
D11接口,多态\src\cn\itcast\demo1, 0 , 2018-05-22
D11接口,多态\src\cn\itcast\demo1\MyInterface.java, 433 , 2018-05-22
D11接口,多态\src\cn\itcast\demo1\MyInterface1.java, 496 , 2018-05-22
D11接口,多态\src\cn\itcast\demo1\Test.java, 186 , 2018-05-22
D11接口,多态\src\cn\itcast\demo2, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo2\MyInter.java, 875 , 2018-05-28
D11接口,多态\src\cn\itcast\demo2\MyInter1.java, 208 , 2018-05-28
D11接口,多态\src\cn\itcast\demo2\Test.java, 260 , 2018-05-28
D11接口,多态\src\cn\itcast\demo3, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo3\A.java, 74 , 2018-05-28
D11接口,多态\src\cn\itcast\demo3\B.java, 83 , 2018-05-28
D11接口,多态\src\cn\itcast\demo3\C.java, 456 , 2018-05-28
D11接口,多态\src\cn\itcast\demo3\D.java, 60 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Animal.java, 98 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Cat.java, 126 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Fu.java, 120 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Somking.java, 93 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Student.java, 135 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Test.java, 484 , 2018-05-28
D11接口,多态\src\cn\itcast\demo4\Zi.java, 136 , 2018-05-28
D11接口,多态\src\cn\itcast\demo5, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo5\Fu.java, 125 , 2018-05-28
D11接口,多态\src\cn\itcast\demo5\Test.java, 550 , 2018-05-28
D11接口,多态\src\cn\itcast\demo5\Zi.java, 135 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6\Animal.java, 65 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6\Person.java, 95 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6\Student.java, 205 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6\Teacher.java, 133 , 2018-05-28
D11接口,多态\src\cn\itcast\demo6\Test.java, 753 , 2018-05-28
D11接口,多态\src\cn\itcast\demo7, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo7\Animal.java, 93 , 2018-05-28
D11接口,多态\src\cn\itcast\demo7\Cat.java, 196 , 2018-05-28
D11接口,多态\src\cn\itcast\demo7\Dog.java, 191 , 2018-05-28
D11接口,多态\src\cn\itcast\demo7\Test.java, 636 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8, 0 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8\Computer.java, 297 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8\Keyboard.java, 200 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8\Mouse.java, 194 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8\Test.java, 479 , 2018-05-28
D11接口,多态\src\cn\itcast\demo8\USB.java, 121 , 2018-05-28

近期下载者

相关文件

评论我要评论

收藏者