trick/test/SIM_test_abstract/models/abstract_test/ball.hh
Alex Lin 0c84b8ad08 plit test sims and fun sims into separate directories
Moved SIM_events, test_dp, test_dr, and abstract.

refs #191
2016-02-23 13:48:59 -06:00

38 lines
703 B
C++

/**
@file
@verbatim
PURPOSE:
( Test abstract class pointers )
@endverbatim
*******************************************************************************/
#ifndef BALL_HH
#define BALL_HH
#include <iostream>
#include <stdio.h>
class Ball {
public:
virtual ~Ball() {} ;
virtual void print_type() = 0 ;
} ;
class Baseball : public Ball {
public:
Baseball() {} ;
~Baseball() {} ;
virtual void print_type() { std::cout << "baseball" << std::endl ; } ;
} ;
class Soccerball : public Ball {
public:
Soccerball() {} ;
~Soccerball() {} ;
virtual void print_type() { std::cout << "soccer ball" << std::endl ; } ;
} ;
#endif