View RSS Feed

penguinCoder

Class and Method Terminology Cheat Sheet

Rate this Entry
by , 10-17-2012 at 11:45 PM (1849 Views)
Class Body - the area between the braces, that contains all the code.

Constructors - used for initializing new objects

Declarations - fields that provide the state of the class and its objects

Methods - implement the behaviour of the class and its objects

Fields - member variables in a class

Local Variables - variables in a method or a block of code

Parameters - is the list of variables in a method declaration

Arguments - are the actual values that are passe in when the method is invoked

Access Modifiers - is the left most modifier in a field declaration, and lets the user control what other classes have access to its value
Public - the field is accessible from all classes
Private - the field is accessible from only within its own class

Object Declaration - associate a variable name with an object type. Example: ClassName classObject;

Object Instantiation - The keyword 'new' is a Java operator that creates a new object

Object Initialization - follows the keyword 'new', which is a call to a constructor, which initializes the new object. Example: new ClassName( 12, 13 );

Object Creation - is a combination of the Declaration, Instantiation, and the Initialization. Example: ClassName classObject = new ClassName( 12, 13 );
Mogmash likes this.

Submit "Class and Method Terminology Cheat Sheet" to Facebook Submit "Class and Method Terminology Cheat Sheet" to Digg Submit "Class and Method Terminology Cheat Sheet" to del.icio.us Submit "Class and Method Terminology Cheat Sheet" to StumbleUpon Submit "Class and Method Terminology Cheat Sheet" to Google

Updated 10-18-2012 at 01:30 AM by penguinCoder

Categories
Cheat Sheet

Comments