Mindmap
Object
Inhalt der Mindmap
Object
Methods (Actions)
- Declaration
- Method name
- returnType
- Primitive
- Object
- Void
- No Return
- Notation:
- int
- (List of Arguments)
- Notation:
- (int a, int b)
- Notation:
- Notation:
- add
- returnType
- Method name
- Body
- Code that performs action
- Main
- Declaration
Fields (Attributes)
- Variables
- Class
- Object
- Naming Convention:
- paulExample
Class (Template for Objects)
- Object Clone
- Object Clone
- Naming Convention:
- PaulExample
- Constructor (Creates Object)
- Same name as class
- Declaration
- constructorName
- (List of Arguments)
- Zero arguments is possible
- (List of Arguments)
- constructorName
- Body
- No Constructor
- Compiler add no argument constructor
- Won't be in source file
- Compiler add no argument constructor
Creating an object
- Notation:
- new Object() ;
- Add to variable
- Notation:
- Object variable = new Object() ;
- Notation:
- Notation:
Accessing Object Components
- objectReference.methodName
- objectReference.fieldName
Reference Variable (Refers to Object)
- If it has no value assign it "null"
- Notation:
- Object variable = null
- Notation:
- If it has no value assign it "null"
Informationen
- Beschreibung
- Mindmap am Object, erstellt von Paul Fernandez am 27/05/2021.
- Erstellt von
- Paul Fernandez
- Aufrufe
- 0
- Bewertung