Java Constructorss
- Variables - Simple Type
- Declare type name
- Initialize name = value;
- shortcut type name = value;
- Variables - Coumpound
- Declare type name
- Create name = new type | []
- Strings
String name = "string of characters";
- Objects
- Declare type name;
- Create object = new class(parameter1, parameter2, ... );
- Shortcut type name = new class(parameters);
- Classes
- Declaring [access] class classname [extends...]
[implements ...]
{//class definition goes here..}
[access] [static] type instance_variable;
[access] [static] type instance_variableN;
[access] [static] type method1 (parameter_list){}
[access] [static] type methodN (parameter_list)
- Declaring [access] class classname [extends...]
[implements ...]
- Static - turn variables into class variables and methods into class methods as opposed to instance variables.
- Creating Instance Variables
- access class classame {extends ...] [implements ..]
- Setting Variable Access