1 / 23

(Continued)

(Continued). P[ i ]=new Student();. Constructor Section (Student pr[]). Main: Section sec= new Section(list);. st. s. st. s. st. s. st. s. pr. list. 0. 1. 2. 3. 4. 5. sec. 4. 0. Add an object. Main: sec . addStudent (std). 0. 1. 2. 3. 4. 5. sec. 4. 5. p1. std.

yates
Télécharger la présentation

(Continued)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. (Continued)

  2. P[i]=new Student();

  3. Constructor Section (Student pr[]) Main: Section sec= new Section(list); st s st s st s st s pr list 0 1 2 3 4 5 sec 4 0

  4. Add an object Main: sec .addStudent(std) 0 1 2 3 4 5 sec 4 5 p1 std

  5. Find student by 1 parameter sec .oldestStudent() 0 1 2 3 4 5 sec old

  6. Simple object deletion Sec . delete1Student(std); pr std 0 1 2 3 4 5 sec

  7. Simple object deletion Sec . delete1Student(std);  X=2 pr std 0 1 2 3 4 5 sec 4

  8. object deletion with replacement Sec . delete2Student(std); pr std 0 1 2 3 4 5 sec

  9. object deletion with replacement Sec . delete2Student(std); pr std 0 1 2 3 4 5 sec 4

More Related