JavaHTPe_03.pptVIP

  • 5
  • 0
  • 约 78页
  • 2016-12-03 发布于河南
  • 举报
JavaHTPe_03

3 Introduction to Classes and Objects OBJECTIVES In this chapter you will learn: What classes, objects, methods and instance variables are. How to declare a class and use it to create an object. How to declare methods in a class to implement the class’s behaviors. How to declare instance variables in a class to implement the class’s attributes. How to call an object’s method to make that method perform its task. The differences between instance variables of a class and local variables of a method. How to use a constructor to ensure that an object’s data is initialized when the object is crea

文档评论(0)

1亿VIP精品文档

相关文档