Question: Write a simple program where there are one constructor and one destructor. Write a static variable named count to calculate the object number. In the
Write a simple program where there are one constructor and one destructor. Write a static variable named count to calculate the object number. In the main function creates some objects. A sample of the class & the main function and the expected output are shown here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
