Lecture 5Chapter 8 – Object-Based Programming
Lecture 5Chapter 8 – Object-Based Programming
Outline8.1 Introduction8.2 Implementing a Time Abstract Data Type with a Class8.3 Class Scope8.4 Controlling Access to Members8.5 Referring to the Current Object’s Members with this 8.6 Initializing Class Objects: Constructors 8.7 Using Overloaded Constructors8.8 Using Set and Get Methods8.9 Composition 8.10 Garbage Collection 8.11 Static Class Members 8.12 Final Instance Variables 8.13 Creating Packages 8.14 Package Access 8.15 Software Reusability 8.16 Data Abstraction and Encapsulation 8.17 (Optional Case Study) Thinking About Objects: Starting to Program the Classes for the Elevator Simulation
|
|