23 lines
559 B
C++
23 lines
559 B
C++
#include <iostream>
|
|
#include "Figure.h"
|
|
#include "Square.h"
|
|
|
|
int main() {
|
|
std::cout << "Hello, World!" << std::endl;
|
|
|
|
// ahypki::Figure figure = ahypki::Figure();
|
|
// std::cout << "Default name: " << figure.getName() << std::endl;
|
|
//
|
|
// figure.setName("Next name");
|
|
// std::cout << "New name: " << figure.getName() << std::endl;
|
|
|
|
ahypki::Square s = ahypki::Square(10);
|
|
std::cout << s.getName()
|
|
<< " has x= " << s.getX()
|
|
<< " has area= " << s.computeArea()
|
|
<< std::endl;
|
|
|
|
|
|
return 0;
|
|
}
|