From the course: Java 8 Essential Training
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Visualizing class relationships - Java Tutorial
From the course: Java 8 Essential Training
Visualizing class relationships
- Before I continue working with the actual programming, I'd like to show you a little bit of visualization of class relationships. The relationship between a main class and a helper class. In this project, ClassRelationships, I've changed the location of the class files. I've eliminated the packages and I've placed both class files, Calculator and MathHelper, in the root folder of the project. The Calculator class is here and I'll open it in a generic text editor and show you that there is no package declaration at the top. And the same thing is true for MathHelper. With no package declaration, it means that both classes are at the root of the project. Now, to visualize the relationship between the classes, I'll open BlueJ, the other development environment I suggested you install at the beginning of the course. And then, I'm going to import that project. I'll select Project, Open Non BlueJ. And then I'll navigate to my desktop, then to Exercise Files, Ch09, 09_04…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
Understanding encapsulation7m 19s
-
Creating and instantiating custom classes4m 51s
-
Creating nested and anonymous classes4m 17s
-
Visualizing class relationships3m 43s
-
Storing data in instance variables6m 2s
-
Declaring instance and static methods3m 59s
-
Using constructor methods4m 56s
-
Using static variables as constants3m 3s
-
Declaring and using enum types5m 17s
-
-
-
-
-