MUSIC 007 Chapter Notes - Chapter 5: Value Type, Member Variable, Protected Group
Document Summary
Helps abtracts ideas away from a specific implementation. Allows you to focus on the core parts of the program. Also helps encapsulate program functionality into understandable pieces. All have related data and logic are all kept in one place. Helps organizes a program into natural parts that can be extended. Create programs that mirror real world constructs and ideas. Object: how to define a class. Use the class, then say new myclass //calls constructor. To use methods, use the . dot operator. Static members don"t require instantion to use them. Instance members, get copied each time a new object is created. Static members belong to the entire class there is only one: class access modifiers. You can only use the data in that class and you can choose to expose them. Let your specify how programs that use your classes can access their data and methods. Private modifier class member can only be accessed within the class itself.