COMS W1004 Lecture Notes - Lecture 13: Immutable Object

32 views1 pages

Document Summary

Behaviors that can be performed on or by the object. Then when you create a new object you can change the properties. Do not need to instantiate class to use them. Don"t need to create new object references to use static methods. Don"t want outside classes access to private properties. Process of creating an object: instantiating a class. Private = can either be accessed or evoked by other methods of the same class. Int[] a = new int[2] a. length (length is a public variable) Variable x, x. make x refers to variable make. Lower classes inherit properties from higher java classes. Can override a method from the parent class.

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