Question: In real time systems we always need unique values for identification. For example student registration number, your cell number, CNIC number etc. Static data members
In real time systems we always need unique values for identification. For example student registration number, your cell number, CNIC number etc. Static data members could be used to generate such unique numbers (see example: Count Number of objects created so far). You are required to class with the following requirements. Set unique CNIC number to citizens with proper format like: 00000-0000000-0 Name father name, age, qualification, address, marital status, province and city should also be stored (either use constructor or setter method) The initial serial of each district is different like citizens of AJK have serial 82401- 0000000-0 that must be auto assigned based on district. Use string matching technique for implementation. the system should be able to display all given attributes main program, create two objects and call required functions/constructors for each.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
