¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Class ex: Employee

Heather Davis Inglés

Contenido del mapa

Class ex: Employee

  1. Attribute: age

    • int getAge ()
  2. Attribute ex: salary

    • returnType methodName (list of arguments)
      • double getSalary ()
  3. subClass ex: Address

    • Attribute ex: Address address
      • String getAddress ()
  4. "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
                • creates an object, employee, reference of type Employee
  5. UML Class Diagram

    • ClassName
      • Attributes
        • Methods ()

Información

Descripción
Mapa Mental sobre Class ex: Employee, creado por Heather Davis el 18/05/2021.
Creado por
Heather Davis · may 2021
Actualizado
18 may 2021
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?