CISC 124 Lecture 5: 05 -- Classes

38 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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions