C# help

im trying to type this code, but i have problems with using pet1.PetName, but i have declared them earlyer in my code
No description
D
DirtyJ438d ago
You'll need to use getters and setters for those private variables E.g.
getPetName(){
return PetName;
}
setPetName(string name){
PetName=name;
}
getPetName(){
return PetName;
}
setPetName(string name){
PetName=name;
}
Intellisense on VS might be able to auto generate those for you
DM
darth monkey438d ago
thanks man
D
DirtyJ438d ago
Np Salute