// file: PairWithGcd.hpp

#ifndef PAIR_WITH_GCD_HPP_
#define PAIR_WITH_GCD_HPP_

	class PairWithGcd
	{
		protected:
			int		p,
					q;
					
		public:
			int get_p () const {return p;}
			int get_q () const {return q;}
			
			virtual void set (int new_p, int new_q);
			
			virtual int gcd () const = 0;
	}; // PairWithGcd

#endif // PAIR_WITH_GCD_HPP_
