Question: plz tell me the errors in code and explain them. Question 2 - CLO-2 Total Marks = 25 A) Write a person class with two
Question 2 - CLO-2 Total Marks = 25 A) Write a person class with two variables, name and age. In your main function, create 2 objects of person type and initialise them. 1. Using file handling concepts, write these objects into a file called mypersons.txt. (5 marks) ii. Open the file created in the previous part. Read two persons into your program from the mypersons.txt file and display them onto a screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
