MUSIC 007 Chapter Notes - Chapter 5: Value Type, Member Variable, Protected Group

48 views3 pages
7 Mar 2014
School
Department
Course
Professor

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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents