CIS-75 Home http://www.c-jump.com/CIS75/CIS75syllabus.htm

UML Class Diagrams


  1. Weeks 8-9, UML Class and Encapsulation
  2. Java Class and Encapsulation
  3. UML Utility Class
  4. Java Utility Class
  5. Parameterized Class in UML
  6. Parameterized Class in C++
  7. Parameterized Utility Class in UML
  8. Parameterized Utility Class in C++
  9. Kinds of Relationships between Classes
  10. Relationships and Heuristics
  11. UML Association
  12. Naming Relationships
  13. Naming Roles
  14. Relationships and Encapsulation
  15. Relationships and Multiplicity
  16. Association in Java and C++ compared
  17. Aggregation vs. Composition
  18. Aggregation in UML (containment by reference)
  19. Aggregation in Java and C++ compared
  20. Composition in UML (containment by value)
  21. Multiplicity and Encapsulation
  22. Multiplicity and Encapsulation, Cont.
  23. Composition in C++ (Java?)
  24. Inheritance in UML
  25. Inheritance in Java and C++ Compared
  26. Encapsulation of Relationships
  27. Abstract Methods
  28. Abstract Classes
  29. Abstract method and class in C++
  30. Interface
  31. Interface in C++
  32. Polymorphism

1. Weeks 8-9, UML Class and Encapsulation



2. Java Class and Encapsulation



3. UML Utility Class



4. Java Utility Class



5. Parameterized Class in UML



6. Parameterized Class in C++



7. Parameterized Utility Class in UML



8. Parameterized Utility Class in C++



9. Kinds of Relationships between Classes



10. Relationships and Heuristics



11. UML Association



12. Naming Relationships



13. Naming Roles



14. Relationships and Encapsulation



15. Relationships and Multiplicity



16. Association in Java and C++ compared

  • 
    // Java
    public class Controller
    {
    
        private Interface myInterface;
    
    }//class Controller
    
    
  • 
    // C++
    class Controller
    {
    private:
        Interface* myInterface;
    
    };//class Controller
    
    

17. Aggregation vs. Composition



18. Aggregation in UML (containment by reference)



19. Aggregation in Java and C++ compared

  • 
    // Java 
    public class Department
    {
    
        private Employee myEmployee;
    
    }//class Department
    
    
  • 
    // C++
    class Department
    {
    private:
        Employee* myEmployee;
    
    };//class Department
    
    

20. Composition in UML (containment by value)



21. Multiplicity and Encapsulation



22. Multiplicity and Encapsulation, Cont.



23. Composition in C++ (Java?)

  • 
    // C++
    class Device
    {
        private:
            Controller myController;
    
    }//class Device
    
    
  • 
    // Java ?
    public class Device
    {
    
        private Controller myController;
    
    }//class Device
    
    

24. Inheritance in UML



25. Inheritance in Java and C++ Compared

  • 
    // Java
    public class Button extends Component
    {
        //...
    
    }//class Button
    
    
  • 
    // C++
    class Button : public Component
    {
        //...
    
    }//class Button
    
    

26. Encapsulation of Relationships



27. Abstract Methods



28. Abstract Classes



29. Abstract method and class in C++



30. Interface



31. Interface in C++



32. Polymorphism