dimanche 26 mars 2017

const char* classname::getname( ) const ? whats the meaning of first const keyword?

I know second constant keyword tells function is constant

class Person{  
char *name;     
int age;  

public:  
const char* GetName() const;  
int GetAge() const;  

}; 

Aucun commentaire:

Enregistrer un commentaire