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

Mapa mental

Objects and classes

Matthew S Inglés

Contenido del mapa

Objects and classes

  1. Java is an object-oriented program.

    • Objects are everywhere; they are living and nonlving.
      • Objects perform actions (methods)
  2. Need classes to create objects, they are the blueprint.

    • If Employee object only needs to work and be paid, then the class only needs these two methods.
      • Address getAddress: returns an Address object
    • Consider 3 things: the name, fields, and methods. (Structural order of a UML diagram)
      • Fields are variables
    • Main method is needed. "Public static void main(String [ ] args)"
  3. Every class must have at least one constructor. Constructors are like mthods but have no return value.

  4. Can use "new" to create an object.

Información

Descripción
Mapa Mental sobre Objects and classes, creado por Matthew S el 16/01/2020.
Creado por
Matthew S
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?