Model a School and its Timetable Schedule using pure OOP Composition (Has-A Strong Ownership):
schoolDay (std::string), startTime (std::string), endTime (std::string), std::string subjects[4], int subjectCount.displaySchedule() const: Displays timings and subject list.schoolID (int), schoolName (std::string), Schedule timetable (embedded object, strong composition).School(int id, std::string name, Schedule s) initializing members via member initializer list.displaySchoolDetails() const: Prints school metadata and calls timetable.displaySchedule().Schedule object is owned directly by the School object; their lifetimes are bound together.Schedule object with daily subjects.School object embedding the schedule.displaySchoolDetails().=== School Profile & Academic Timetable ===
School ID: 101 | Institution: Lahore Grammar Campus
-------------------------------------------
* Timetable (Monday to Friday): 08:30 AM - 02:30 PM
* Subjects Roster:
1. Computer Science
2. Applied Mathematics
3. Physics
4. English Literature
[✓] Strong OOP Composition verified (Time: 0.008s, Memory: 2.1 MB)