Mapa mental
FirstTask
Conteúdo do mapa
FirstTask
An object must have attributes and actions it can perform, but it can also be on or the other
- Actions are reffered to as methods
- Can be void, method returns nothing
- Attributes referred to as fields
- Fields are variables
- Fields can refer to another object
- Constructor used to construct an object
- Common way of creating object: using "new" keyword
- "This" keyword to refer to current object
- Actions are reffered to as methods
A class is a blueprint/template to create objects that are identical
- Must consider: class name, fields, and methods
- Class must have at least one constructor
UML Class Diagram: top - class name, middle - fields, bottom - methods
"Final" makes the value of variable declaration unchangeable
Garbage collector destroys unused objects and clears memory
Informações
- Descrição
- Computer Science Mapa Mental sobre FirstTask, criado por Teddy Amde em 10-09-2020.
- Criado por
- Teddy Amde
- Visualizações
- 0
- Avaliação