Mapa mental
Chapter 4 Reading Java Objects & Classes

Contenido del mapa
Chapter 4 Reading Java Objects & Classes
Constructor: Used to construct an object; each class must contain one of these and it will have the same name as the class.
- Java Object (aka Instance): can be thought of as everyday objects in life that describe
- Attributes (aka fields): they are variables; almost like qualities
- Actions (aka methods/functions): describe what the object can do/preform
- Declaration Part (aka signature of the method)
- return value
- method name
- list of arguments
- Body:
- code that can preform the action
- *Note* : The return type of a method can be a primitive, an object, or a void. The retunr type void means that the method returns nothing
- Declaration Part (aka signature of the method)
- Java Object (aka Instance): can be thought of as everyday objects in life that describe
Example of UML class diagram
- The "Dog" is the class, "breed, size, age, & color" are the list of fields or attributes, and "eat, sleep, sit, run" are the methods or actions
Java Class: a blueprint or template to create objects of identical type; determines what kind of object you get
Imágenes y archivos del mapa
Información
- Descripción
- Mapa Mental sobre Chapter 4 Reading Java Objects & Classes, creado por Christina Dounis el 14/01/2020.
- Creado por
- Christina Dounis
- Visitas
- 0
- Valoración