Instructions: Question One TWO
Instructions: Question One TWO
9 Marks
QUESTION TWO [15 Marks]
a) Write a C++ program that will implement a class named E-Shamba containing two variables and
two constructors(unparameterized and parameterized). The constructors are used to initialize two
objects S1(13,19) and S2(25,35) respectively. In addition, the class contains a method named Area
used to determine the area of the objects. 8 Marks
b) Assuming you are required to create traffic alert system for road users in Kenya using OOP.
Suggest two possible classes. For each class, suggest two data members and methods that you will
use justifying your answer. 7 Marks