class Valores {
public:
void honestidad();
void respeto();
void responsabilidad();
//void Valores();
};
void Valores::honestidad(){
Serial.println("Soy honesto");
}
Valores::Valores(){
Serial.println("Tengo valores");
String variable = "hola";
}
void Valores::responsabilidad(){
Serial.println("Soy responsable");
}
void Valores::respeto(){
Serial.println("Soy respetuoso");
}
Valores persona;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
persona.honestidad();
persona.responsabilidad();
persona.respeto();
Serial.println(persona.variable);
}
void loop() {
// put your main code here, to run repeatedly:
}