Subversion Repositories DIN Is Noise

Rev

Blame | Last modification | View Log | RSS feed

#include <iostream>
using namespace std;

struct X {
  virtual void up () {cout << "X.up" << endl;}
};

struct Y : X {
  void up () {cout << "Y.up" << endl;}
};

int main () {
  X x;
  Y y;
  x.up ();
  y.up ();
}