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+
$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