Question: 2. Create a new project named named lab6_2. You're going to write a class of your choice! The class should contain: i. A default constructor

 2. Create a new project named named lab6_2. You're going to

2. Create a new project named named lab6_2. You're going to write a class of your choice! The class should contain: i. A default constructor and a constructor with parameters for all your member variables. ii. Setters and getters for all member variables. ii. A method that prints out information about your class's member variables. iii. Your class should again try to minimize the number of methods which modify private member variables. Don't repeat code! iv. You will create an object of your class type in the driver file. I would like you to create this object on the heap! So your declaration for it should look like: SomeClass* someClassPt- new SomeClass; Now, you will have to remember that before you can access methods, you need to dereference the pointer to your object. You will recall that using the arrow operator (facilitates this kind of access. someClassPtr->someMethod) At the end of your program, don't forget to delete your pointer: delete someClassPtr

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!