CISC 124 Lecture 5: 05 -- Classes

40 views1 pages

Document Summary

Encapsulation - grouping things as units (objects) and information hiding. Simplist kinds of class: group several peices of info together (instance variables) to declare: = new (); Can set to public or private get method - return value of an attribute set method - change value of an attribute. this refers to the whole object (class) can use when multiple names exist a "final" class means you can"t make a subclass. "object" class - everything is a subclass of object has no instance variables but it has methods, such as:

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

Related Questions