Upload
avon
View
29
Download
0
Tags:
Embed Size (px)
DESCRIPTION
(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. - PowerPoint PPT Presentation
Citation preview
(Continued)
Constructor Section (Student pr[])
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
pr
sec
0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3 5:sectio
np0
Main:Section sec ( list);
list
4
st s st s st s st s
Add an objectp1
:student
Layla1f
sec
0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3
sec .addStudent(std) st
d5
:student
Layla21f
:sectionp45
Find student by 1 parameter
0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3
sec .oldestStudent()
5
:student
Layla21f
old
sec
:sectionp5
Simple object deletionpr
:student
Nourah20f0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3
Sec . delete1Student(std);st
d5
:student
Layla21f
sec
:sectionp5
Simple object deletionpr
:student
Nourah20f0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Sara19f
3
Sec . delete1Student(std);X=2
std
5
:student
Layla21f
sec
:sectionp54
object deletion with replacement
pr
:student
Nourah20f0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3
Sec . delete2Student(std);st
d5
:student
Layla21f
sec
:sectionp5
object deletion with replacement
pr
:student
Nourah20f0 1 2 4
:student
Ashwaq19f
:student
Huda18f
:student
Nourah20f
:student
Sara19f
3
Sec . delete2Student(std);st
d5
:student
Layla21f
sec
:sectionp54