250 likes | 1.23k Views
(Continued). Constructor Section (Student pr[]). Main: Section sec ( list);. st. s. st. s. st. s. st. s. pr. list. 0. 1. 2. 3. 4. 5. sec. 4. 0. Add an object. sec . addStudent (std). p1. std. 0. 1. 2. 3. 4. 5. sec. 4. 5. Find student by 1 parameter.
E N D
Constructor Section (Student pr[]) Main: Section sec ( list); st s st s st s st s pr list 0 1 2 3 4 5 sec 4 0
Add an object sec .addStudent(std) p1 std 0 1 2 3 4 5 sec 4 5
Find student by 1 parameter sec .oldestStudent() 0 1 2 3 4 5 sec old
Simple object deletion Sec . delete1Student(std); pr std 0 1 2 3 4 5 sec
Simple object deletion Sec . delete1Student(std); X=2 pr std 0 1 2 3 4 5 sec 4
object deletion with replacement Sec . delete2Student(std); pr std 0 1 2 3 4 5 sec
object deletion with replacement Sec . delete2Student(std); pr std 0 1 2 3 4 5 sec 4