get and set method in c++ with example. Basic program of c++ using get and set method
C++ program using get and set method Program to print age, first name, last name and standard of a student #include < iostream > #include < sstream > using namespace std; class Student { private : int age,standard; string first_name, last_name; public : void set_age( int a) { age=a; } int get_age() { return age; } void ...