#ifndef POINT_HPP #define POINT_HPP namespace draw { struct Point { int x{}; // equivalent to `int x{0};` int y{}; // brace init. guarantees zero-initialization for scalar types Point(int x, int y) : x{x}, y{y} {}; // constructor with initializer list Point() = default; // we don't define anything - no need to do this in .cpp void print(); // method is declared, not defined }; } #endif