| 123456789101112131415161718192021222324252627282930313233343536 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* Point.class.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: Bastien Chanot <chanot.bastien@gmail.com> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2025/07/18 19:15:01 by Bastien Chanot #+# #+# */
- /* Updated: 2025/07/18 19:16:41 by Bastien Chanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "Point.class.hpp"
- #include <iostream>
- Point::Point(void) : _x(0), _y(0) {
- std::cout << "Default constructor called" << std::endl;
- return ;
- }
- Point::Point(Point const &src) {
- *this = src;
- std::cout << "Copy constructor called" << std::endl;
- return ;
- }
- Point::~Point(void) {
- std::cout << "Default destructor called" << std::endl;
- return ;
- }
- Point &Point::operator=(Point const &src) {
- std::cout << "Copy assignment operator called" << std::endl;
- return *this;
- }
|