I have written simple code in cpp as shown below. I am accessing private data members using 2 ways. First by using get an set method and next by using friend function. But f