01-面向对象(多态-概念)

 1 package myFirstCode;
 2 
 3 /*
 4 多态:可以理解为事务存在的多种体现形态。
 5 
 6 人:男人,女人
 7 
 8 动物:猫,狗
 9 
10 
11 猫 x = new 猫();
12 
13 动物 x = new 猫();
14 
15 1. 多态的体现
16 2. 多态的前提
17 3. 多态的好处
18 4. 多态的应用
19 
20  */
21 
22 
23 
24 public class DuoTailDemo {
25 
26     public static void main(String[] args) {
27         // TODO Auto-generated method stub
28 
29     }
30 
31 }
View Code

相关文章:

  • 2021-05-13
  • 2021-06-14
  • 2021-06-07
  • 2022-01-04
  • 2021-06-19
  • 2021-06-17
  • 2021-06-28
猜你喜欢
  • 2022-01-01
  • 2021-10-10
  • 2022-01-14
  • 2022-12-23
  • 2021-10-06
  • 2021-06-27
相关资源
相似解决方案