#include <iostream>
#include <string>
using namespace std;
class parent{
protected:
int age;
public:
//setter
void setValues(int Age) { age=Age; }
//getter
Type: Posts; User: adzee
#include <iostream>
#include <string>
using namespace std;
class parent{
protected:
int age;
public:
//setter
void setValues(int Age) { age=Age; }
//getter
is the main methods for storing and retrieving DATA in private class variables using setter/getter methods? is this common practice?
Sorry if my terminology is off, it's been a long while since i've practiced programming.
#include <iostream>
#include <string>
using namespace std;
class parent{
protected:
int age;...