Question: Write a C++ program which uses access modifier functions public and private Specification for the program is as follows: a) Create a class EMPLOYEE which

 Write a C++ program which uses access modifier functions public and

Write a C++ program which uses access modifier functions public and private Specification for the program is as follows: a) Create a class EMPLOYEE which has two access modifiers public and private b) public access modifier in class box has variable and two functions setld and getld,getName ,setName,getPhone, setPhone c) Private access modifier in class box has variable id, name,Phone d) Function getid will return id e) Function setid will set value of id by user after validate that the string is alphanumeric F) Function setName will set value of name by user after validate that the string is alphabets G)Function setPhone will set value of Phone by user after validate that the string is Numeric h) Create object of class Employee and display id, name,phone

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!