csc3112 Lecture7
csc3112 Lecture7
csc3112 Lecture7
Encapsulation
Marriette Katarahweire
sortInt(list, listLength)
Program units that use a specific abstract data type are called
clients of that type
situations arise in which clients need to access the data
members. The common solution is to provide accessor
methods; getters and setters
allow clients indirect access to the so called hidden data; a
better solution than simply making the data public, which
would provide direct access
Try out Review Questions 1 - 5, 30, 34, 41, 43,44, Problem Set 1,
3, 12, 15, 16, Programming Exercises 1, 5, 10