/*
* @topic T0M145 C++ crash course sample 04
* @brief Sample C++ class implementation
*/
#include "window.h"
Window::Window( int x, int y )
// member initializer list
: x(x), y(y)
{
/*
this->x = x;
this->y = y;
(*this).x = x;
(*this).y = y;
*/
}
void Window::display()
{
std::cout << "Window::display\n";
}
Frame::Frame( int x, int y )
: Window( x, y ) /*super( x, y );*/
{
}