Point.class.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* Point.class.cpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: Bastien Chanot <chanot.bastien@gmail.com> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/18 19:15:01 by Bastien Chanot #+# #+# */
  9. /* Updated: 2025/07/18 19:16:41 by Bastien Chanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "Point.class.hpp"
  13. #include <iostream>
  14. Point::Point(void) : _x(0), _y(0) {
  15. std::cout << "Default constructor called" << std::endl;
  16. return ;
  17. }
  18. Point::Point(Point const &src) {
  19. *this = src;
  20. std::cout << "Copy constructor called" << std::endl;
  21. return ;
  22. }
  23. Point::~Point(void) {
  24. std::cout << "Default destructor called" << std::endl;
  25. return ;
  26. }
  27. Point &Point::operator=(Point const &src) {
  28. std::cout << "Copy assignment operator called" << std::endl;
  29. return *this;
  30. }