Answer:
c++
Step-by-step explanation:
using namespace std;
class areaPerimeter
{
private:
float len;
public:
void getData();
float findArea();
float findPerimeter();
};
void CodesCracker::getData()
{
cout<<"Enter the Length of Square: ";
cin>>len;
}
float CodesCracker::findArea()
{
return (len*len);
}
float CodesCracker::findPerimeter()
{
return (4*len);
}
int main()
{
CodesCracker c;
float area, per;
c.getData();
area = c.findArea();
per = c.findPerimeter();
cout<<"\\Area = "<<area;
cout<<"\\Perimeter = "<<per;
cout<<endl;
return 0;
}