Question: Define a Student class containing two private attributes stdId, level. Provide this class with: a . a constructor allowing the initialization of its attributes. b

Define a Student class containing two private attributes stdId, level. Provide this class with:
a. a constructor allowing the initialization of its attributes.
b. Provide a set and get methods for level data member.
c. Method named displayInfo to print the Student's information.
Test your software in the main function:(open deriver file main.cpp)
Creates Student object named Std1.
print Std1object details, who belongs to level 3.
Define a Student class containing two private

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 Programming Questions!