Mapa mental
Class ex: Employee
Conteúdo do mapa
Class ex: Employee
Attribute: age
- int getAge ()
Attribute ex: salary
- returnType methodName (list of arguments)
- double getSalary ()
- returnType methodName (list of arguments)
subClass ex: Address
- Attribute ex: Address address
- String getAddress ()
- Attribute ex: Address address
"Constructors"
- Create objects "Instances" out of the class
- Looks like a method but with no return value
- Must have same name as Class ie: Employee
- Examples:
- public class Employee {...}
- Employee employee = new Employee ()
- Employee.age = 40
- Employee.salary = 90000.00
- new Employee (40, 90000.00)
- "new" creates instantiation of object under class
- will be "null" until an actual employee instance is created
- "new" creates instantiation of object under class
- creates an object, employee, reference of type Employee
- Employee employee = new Employee ()
- public class Employee {...}
- Examples:
- Must have same name as Class ie: Employee
- Looks like a method but with no return value
- Create objects "Instances" out of the class
UML Class Diagram
- ClassName
- Attributes
- Methods ()
- Attributes
- ClassName
Informações
- Descrição
- Science Mapa Mental sobre Class ex: Employee, criado por Heather Davis em 18-05-2021.
- Criado por
- Heather Davis
- Visualizações
- 0
- Histórico
-
- Criado por Heather Davis · 18 mai 2021
- Copiado por Heather Davis · 18 mai 2021
- Avaliação