about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/3/C++/cow-test.cc
blob: ea7b86d1c93a108b9cb73a98ce0b896eab14dba8 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "cow.h"

int
main ()
{
  Cow cow ("foo", "bar", 7);
  cow.age = -4;   // some casting happens here
  cow.moo ();
}