Category : Files from Magazines
Archive   : CUJ9405.ZIP
Filename : LNS2.H

 
Output of file : LNS2.H contained in archive : CUJ9405.ZIP

Listing 8 - An lns header with lns as an abstract base class

//
// lns2.h - line number sequence interface
//
#ifndef LNS_H_INCLUDED
#define LNS_H_INCLUDED

class lns
{
public:
virtual ~lns() = 0;
virtual void add(unsigned n) = 0;
virtual void print() = 0;
};

#endif