/*
* @topic T0M155 C++ crash course sample 05
* @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 );*/
{
}
Frame::Frame()
: Window( 0, 0 ) /*super( 0, 0 );*/
{
}
void Frame::resize()
{
}