Mindmap
Objects/Classes
Inhalt der Mindmap
Objects/Classes
Object-Oriented Programming
- Modelling applications on real-world objects
- Objects don't need every real-world quality of its namesake
- Modelling applications on real-world objects
Objects
- Real-World: Car, attirbutes: Color, # of valves, plate #, # of tires
- Java: Has attributes and can perform actions
- Field: Attribute
- Method: Action
- Returns
- Object
- Void
- Nothing
- Main
- Entry Point to application
- Returns
- Field and Method: One or other necessary, not both
- Created using "new" function
- Null
- Variable contains no value
- Also called Instance
Class
- Blueprint for object
- Constructor
- Creates Objects
- No Return Value
- Added by Compiler
- Creates Objects
- Constructor
- Create abstraction for a problem
- 3 Things to consider when making
- Class Name
- Fields
- Methods
- Blueprint for object
Informationen
- Beschreibung
- Mindmap am Objects/Classes, erstellt von Matthew Poole am 27/01/2020.
- Erstellt von
- Matthew Poole
- Aufrufe
- 0
- Bewertung