Question: C++ You are given a class Marker. You need to define a new class Marker00P that inherits from Marker and additionally has an attribute int

C++

C++ You are given a class Marker. You need to define a

You are given a class Marker. You need to define a new class Marker00P that inherits from Marker and additionally has an attribute int *marks and a single public function with the signature void capMarks(int). i. Write the C++ declaration for Marker00P that clearly shows the inher- itance from Marker. Make sure that you explicitly declare the default constructor, correctly set access modifiers, and follow information hiding policy with respect to the variable int *marks so that all set/get methods are introduced if required. ii. Assume that in the previous part, Marker has an abstract method defined as part of the class. Explain what this means for the Marker00P class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!