Skip to content

Instantly share code, notes, and snippets.

@FraGoTe
Created Apr 28, 2018
Embed
What would you like to do?
//definiciones de las funciones miembro
Prueba::Prueba(int numero)//constructor.
{
x = numero;
cout << "Se ejecuta el constructor del objeto nro: " << (*this).x << endl;
}
Prueba::~Prueba()
{
cout << "Se ejecuta el DESTRUCTOR del objeto nro: " << (*this).x << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment