Mapa mental
FirstTask
Contenido del mapa
FirstTask
JAVA OBJECT
- Company
- Employees
- Tax
- Age
- Salary
- Employees
- Attributes
- Fields
- Actions
- Method
- Company
Java Classes
- Class name
- Fields
- Age
- Salary
- Methods
- returnType methodName (listOfArguments)
- int negate(int number)
- int add (int a, int b)
- Void: no return
- Main
- public static main void (String [] args)
- java className arg 1, arg 2...
- java Test 1 safeMode
- returnType methodName (listOfArguments)
- class className { [class body] }
- Constructors
- constructorName (listOfArguments) { [constructor body] }
- initialize the fields
Creating Objects
- instance/instantiate
- new is always followed by the constructor
- new employee ();
- objectReference.method/fields Name
- null: when there is no value
- == operator to test
- null: when there is no value
Información
- Descripción
- Mapa Mental sobre FirstTask, creado por HJ Lee el 11/09/2020.
- Creado por
- HJ Lee
- Visitas
- 0
- Valoración