0Pricing
Java Academy · Lesson

Modeling a Domain (UML→Code)

Turn a tiny problem description into classes, fields, and methods. Read a simple UML sketch and implement it in Java.

What is domain modeling?

Domain modeling means describing the problem with classes and relations that match the real world. Keep it small: choose 2 or 3 core concepts and write down what each knows and does.

Nouns, verbs, relations

Underline nouns to propose classes and underline verbs to propose methods. If one thing uses or contains another, that suggests a has a field. This simple routine turns text into a class list.

All lessons in this course

  1. this & toString/equals/hashCode
  2. Object Composition
  3. Modeling a Domain (UML→Code)
← Back to Java Academy