When manipulating the DOM, a parent is one object, and a child is another object contained within However, in OOP, you have to think more of the classes than the individual objects themselves In OOP, a parent is one class, and a child is another class that inherits all of the attributes and functions assigned to the parent classEnhancing Class Diagrams The class symbols also may be used on class and communication diagrams Figure 1 below illustrates the class diagram for a student viewing personal and course information on Web pages Each class has attributes and methods (which are not shown on diagrams using this notation) If the class is a user interface type of This is an example of a class diagram, using the Publication class as the parent It shows the associations and relationships between Publication, Hardcover, and the two specialized hardcover types
Understanding Models Classes And Relationships Visual Studio Windows Microsoft Docs
