Mind map
Classes
Map content
Classes
Blueprint/template
Naming Convention: Capitalize the Initial of Each Word
Constructor
- Objects
- Fields (attributes)
- Examples for car: 1) color 2) number of tires 3) plate number 4) number of valves
- Camel Naming Convention
- Methods (actions)
- Examples for car: 1) run 2) brake
- Camel Naming Convention
- Both fields and methods are optional
- Creating an object: Use new keyword
- Example: new Employee();
- Assigning to an Object Variable: Declare an object reference with the same type as the object
- Example: Employee employee = new Employee();
- Call a method or field: Use a period (.)
- Examples: objectReference.methodName objectReference.fieldName
- Reference Variable has No Value: Use "null"
- Example: Book book = null;
- Fields (attributes)
- Every class has at least one
- Often called "a constructor method" but does not have a return value
- Objects
Information
- Description
- Mind Map on Classes, created by Zach Assid on 28/05/2020.
- Created by
- Zach Assid
- Views
- 0
- Rating