Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Created June 1, 2021 06:41
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 Kevin-Gomez10/7de522ba9a55ba836bac47a74ca8bf7d to your computer and use it in GitHub Desktop.
Save Kevin-Gomez10/7de522ba9a55ba836bac47a74ca8bf7d to your computer and use it in GitHub Desktop.
POO Act6 Figura C ++ *** main.cpp *** metodos de la clase
#include <iostream>
using namespace std;
#include "clasefigura.h"
void Figura::Calcula_Area()
{
A=L*L;
cout<<" Area cuadrado = "<<A<<endl;
}// fin de Calcula Area
void Figura::Calcula_Perimetro()
{
P=4*L;
cout<<" Perimetro Cuadrado = "<<P<<endl;
}// fin de clase Calcula Calcula_Perimetro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment