COMS W1004 Lecture Notes - Lecture 13: Immutable Object
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.