25
บทที่ 7 วิธีการเชิงวัตถุและการออกแบบคลาส

Java 7&12 6 2

Embed Size (px)

DESCRIPTION

 

Citation preview

  • 1. 7
  • 2. static classvariables static variables static
  • 3. (class) 3
  • 4. (class) ()1. (Encapeulation) Cricle
  • 5. (class) ()2. (Inheritance) (Inheritance) superclass base class subclass child class
  • 6. (Inheritance) extends
  • 7. (Inheritance) () private TwoDShape private Triangle protected
  • 8. (Inheritance) () final TwoDShape
  • 9. super(parameter-list); super
  • 10. (ClassDiagram) UML Unlflied Modelling Language
  • 11. () private (-) public (+)
  • 12. () score setScores() getScore() getGrade() UML GradedActivity
  • 13.
  • 14. ()
  • 15. () Person
  • 16. () Person
  • 17. (Inheritance)
  • 18. 12 NetBeans
  • 19. NetBeans IDE NetBeans
  • 20. NetBeans File > New Project New Project Desktop Application Java JavaDesktop Application
  • 21. NetBeans() Next > > Finish Finish GUI Swing
  • 22. NetBeans() Events Events Events Mouse > mouseClicked TODO System.out.println(Hello JAVA);
  • 23. (bug) NetBeans
  • 24. 22 24 25 27 38 39 40 .6/2