ݺߣ

ݺߣShare a Scribd company logo
JAVA SE Lesson 1


1. һֳĸһ־ʾʽǾ

 ĸ࣬ȻɶObject

 ʵInstance
              

2. 󲿷ֹɣԼһʾ

 һöʾ

3. һ java Դļж˶࣬ôЩֻ

 һ public ģ仰˵ĶԶ

  public ġ

4.  Java нзIJʱ۴ݵԭ

 ͻͣݷʽͳһǴֵpass by value
                                  

 Java ûдãpass by referenceĸ

5. أOverloadʾͬ

 ͬͬ㺬壺1ͬ

 2Ͳͬ ע⣺ķֵûκӰ

 졣

6. 췽أֻ迴ɡһ췽

 һ췽ôʹ this()ķʽãthis()

 еIJʾĿ깹췽IJthis()ҪΪ

 췽ĵһ䣬仰˵this()֮ǰκοִ

 еĴ롣

7. ̳УInheritenceJava ǵ̳еģζһֻܴ
һ̳У̳еࡾ࣬base class 
                               

 еࣩJava еļ̳ʹ extends ؼ֡

8. ʱ ĬȵøIJĹ
            Java

 Ȼִиù췽ɸĶ󡣽

 ȥĹ췽Ķ
                   Ҫ

 ҪɸĶûиû

 󡣱˵ûиףûкӡ
                  

9. super ؼ֣super ʾԸá

10. ʹ super()ʽøij췽ô

 ִеʱͻѰ super()ӦĹ췽ȥ

 ѰҸIJĹ췽 this һsuper Ҳ

 ҪΪ췽ĵһִ䣬ǰ治ִ

 䡣

11. ڼ̳е 3 㣺

a) еģҲ

b) ûеģ

c) еģԸı

12. ڼ̳еע

a) 췽ܱ̳

b) ԿԱ̳

c) Ĺ췽ʽصøIJĹ췽

d) ûвĹ췽ʱҪʹ super
ʽصøĹ췽super ָǶԸ

e) super ؼֱǹ췽еĵһ䡣


13. дOverrideֽд븸ķ

  һһһ˵븸

  ķдϵ

14. д뷽֮Ĺϵطͬһڲ

  дڸ֮䡣

15.         д  ϵ ʱ          ͨ 

  super.run()ʽø run() super.run()ط

  ڵһ䣬˴ʱѾϣȵø

   run()ȵ run()Ǹݳ߼

  ġ

16. ڶһʱûʽָĸ࣬ô

  ͻ̳ java.lang.Object ࣨJDK ṩһ࣬Object

   Java ֱӻӸࣩ

17. ̬Polymorphism
                   ˵Ǹࣨõǻ

  ˣ
     ˶̬˼ǣ͵ÿָ

  Ķ

More Related Content

[ʥ˼԰][Java SE]Java se lesson 1

  • 1. JAVA SE Lesson 1 1. һֳĸһ־ʾʽǾ ĸ࣬ȻɶObject ʵInstance 2. 󲿷ֹɣԼһʾ һöʾ 3. һ java Դļж˶࣬ôЩֻ һ public ģ仰˵ĶԶ public ġ 4. Java нзIJʱ۴ݵԭ ͻͣݷʽͳһǴֵpass by value Java ûдãpass by referenceĸ 5. أOverloadʾͬ ͬͬ㺬壺1ͬ 2Ͳͬ ע⣺ķֵûκӰ 졣 6. 췽أֻ迴ɡһ췽 һ췽ôʹ this()ķʽãthis() еIJʾĿ깹췽IJthis()ҪΪ 췽ĵһ䣬仰˵this()֮ǰκοִ еĴ롣 7. ̳УInheritenceJava ǵ̳еģζһֻܴ
  • 2. һ̳У̳еࡾ࣬base class еࣩJava еļ̳ʹ extends ؼ֡ 8. ʱ ĬȵøIJĹ Java Ȼִиù췽ɸĶ󡣽 ȥĹ췽Ķ Ҫ ҪɸĶûиû 󡣱˵ûиףûкӡ 9. super ؼ֣super ʾԸá 10. ʹ super()ʽøij췽ô ִеʱͻѰ super()ӦĹ췽ȥ ѰҸIJĹ췽 this һsuper Ҳ ҪΪ췽ĵһִ䣬ǰ治ִ 䡣 11. ڼ̳е 3 㣺 a) еģҲ b) ûеģ c) еģԸı 12. ڼ̳еע a) 췽ܱ̳ b) ԿԱ̳ c) Ĺ췽ʽصøIJĹ췽 d) ûвĹ췽ʱҪʹ super
  • 3. ʽصøĹ췽super ָǶԸ e) super ؼֱǹ췽еĵһ䡣 13. дOverrideֽд븸ķ һһһ˵븸 ķдϵ 14. д뷽֮Ĺϵطͬһڲ дڸ֮䡣 15. д ϵ ʱ ͨ super.run()ʽø run() super.run()ط ڵһ䣬˴ʱѾϣȵø run()ȵ run()Ǹݳ߼ ġ 16. ڶһʱûʽָĸ࣬ô ͻ̳ java.lang.Object ࣨJDK ṩһ࣬Object Java ֱӻӸࣩ 17. ̬Polymorphism ˵Ǹࣨõǻ ˣ ˶̬˼ǣ͵ÿָ Ķ