TMC2413 Tut11-Q

You might also like

You are on page 1of 1

TMC2413 Object-Oriented Software Development

Tutorial 11
OOD Designing Classes
1. List and briefly explain THREE (3) types of visibility when designing classes.
2. Based on the class visibility that you have listed in Question 1, do the following:
a) Identify one class and list all the possible attributes and methods.
b) Assign visibility for the attributes and methods.
c) Give a reason why you assign that type of visibility for that particular

attribute or method.
Use the following table to write your answers:
Attribute/Method

Visibility

Reason

3. How do you assign the class visibility if you do want other objects to access the
internal data, but wish to control the access?

You might also like