Accessing Private Data Members - Online Code

Description

Accessing Data Members in C++ which have been declared Private. This is a flaw in the language.

Source Code




#include <iostream.h>

#include <string.h>

#include <conio.h>





class bestcoder

{

  private:



     char name[40];

     char grade;

     int age;



  public:



 bestcoder(char* 
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.