Java 9 with JShell
上QQ阅读APP看书,第一时间看更新

Chapter 2. Real-World Objects to UML Diagrams and Java 9 via JShell

In this chapter, we will learn how to recognize objects from real-life situations. We will understand that working with objects makes it simpler to write code that is easier to understand and reuse. We will learn how to recognize real-world elements and translate them into the different components of the object-oriented paradigm supported in Java 9. We will:

  • Identify objects from applications requirements
  • Capture objects from the real world
  • Generate classes to create objects
  • Recognize variables and constants to create fields
  • Identify actions to create methods
  • Organize classes with UML diagrams
  • Use feedback from domain experts to improve our classes
  • Work with Java objects in JShell