Mind map
JAVA Objects & Classes
Map content
JAVA Objects & Classes
Class
- blueprint or template
- determines what objects you get
- must have at least one constructor
- 3 considerations
- classname
- fields
- variables and/or primitive references
- methods
- defines actions that a class's object can do
- return types
- primitive
- object
- void
- method main
- provides entry point
- return types
- comprised of declaration & body
- body
- code to perform action
- declaration
- return value, method name, list arg
- body
- defines actions that a class's object can do
Object
- 2 considerations
- attributes/fields
- actions/methods
- new keyword followed by constructor of the class used to create new object
- use reference variables to manipulate later
- model for "real life"
- 2 considerations
Information
- Description
- Mind Map on JAVA Objects & Classes, created by Danielle Dietz on 27/05/2021.
- Created by
- Danielle Dietz
- Views
- 0
- Rating