Feedback for subjective question
Question 1: Write a C++ program that contains a class "myClasshaving two data members of type int.
The class must have
The class must have
- · A default constructor which must initialize all the data members to their meaningful values.
- · A destructor with no implementation.
- · Setter member functions to set all data members of class
- · Getter member functions to get all data members of class
- Prompt the user to enter the number of objects to be created.
- Dynamically allocate memory to objects according to the size entered by user.
- De-allocate memory that was allocated to objects
Current Answer:
Be the first to post an answer to earn 100CR.