Skip to content

Instantly share code, notes, and snippets.

@FraGoTe
Created April 28, 2018 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FraGoTe/703f7f282a87a7b154498c4a8d9d77b5 to your computer and use it in GitHub Desktop.
Save FraGoTe/703f7f282a87a7b154498c4a8d9d77b5 to your computer and use it in GitHub Desktop.
//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