August 1997
OP216: OBJECT ORIENTED PROGRAMMING

QUESTION 4

Total Marks: 20 Marks

Click here to access other questions

Click to access
SUGGESTED SOLUTIONS
for Question 4

4. (a) List the six steps involved in the object-oriented design process. [6]
(b) A program is required to determine the area and perimeter of a variety of geometric figures. Each figure is encapsulated with its own attributes to create a distinct class. [7]
Describe the attributes and methods for a circle class that is to be constructed first. You are required to list only the attributes and methods, no C++ code is required.Provide explanations if unsure.
(c) The design of a rectangle class follows along the same lines as the circle class. [7]
Define the rectangle class in C++.