Q)Suppose you are a programmer in Agha Khan Hospital. Agha Khan Hospital Chairman has assigned a task you to develop an application in regards to handle the data related to COVID-19 Vaccination Registration. Each patient is provided with a security code needed for verification at the time of vaccination. Range of security codei is1 to 10.
Task is to create a class COVID with 6 private data members name, cnic, security code, age, address and blood pressure of patient. Class include public member functions
1. input ( ) function to input the attributes of patient
2. verify ( ) function to check security code provided at the time of registration
3. display ( ) function to display the patient cnic if security code is verified
4. show ( ) function to display the message NOT REGISTERED if security code doesn’t match
Define verify function outside the class using scope resolution operator.
(Subject :OOP)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here