Lecture Notes on 14 Sep 2020 * How do we know that objects intersect? This is how we will define the intersection of two object A and B: - A is NOT strictly inside B AND B is NOT strictly inside A AND A is NOT strictly outside B There are many definitions of intersection; we will go with the above definition. Q1. In the following pairs of classes, identify the superclass and the subclass: * Employee, Manager * Polygon, Triangle * GraduateStudent, Student * Person, Student * Employee, GraduateStudent * BankAccount, CheckingAccount * Vehicle, Car * Vehicle, Minivan * Car, Minivan * Truck, Vehicle Q2. Draw an inheritance diagram that shows the inheritance relationships between the classes * Person * Employee * Student * Instructor * Classroom * object Q3. In an object-oriented traffic simulation system, we have the following classes. Draw an inheritance diagram that shows the relationships between these classes * Vehicle * Car * Truck * Sedan * Coupe * PickupTruck * SportUtilityVehicle * Minivan * Bicycle * Motorcycle Q4. What inheritance relationships would you establish among the following classes: * Student * Professor * TeachingAssistant * Employee * Secretary * DepartmentChair * Janitor * SeminarSpeaker * Person * Course * Seminar * Lecture * ComputerLab