nettlock 0 Newbie Poster


my problem is :

I have an interface

class IAnexable 
        virtual IAnexable* anexar( char c ) const=0 ;
        virtual IAnexable* anexar( SecuenciaCaracter* sc ) const=0;
        virtual IAnexable* anexar( SecuenciaCaracter* sc, int inicio, int fin ) const=0;

from which it inherits the following abstract class

class AbstractConstructorCadena :  public SecuenciaCaracter,public IAnexable
                AbstractConstructorCadena(const AbstractConstructorCadena& orig);
                virtual AbstractConstructorCadena* anexar( char c )  {}
                virtual AbstractConstructorCadena* anexar(SecuenciaCaracter* sc ){}
                virtual AbstractConstructorCadena* anexar( SecuenciaCaracter*sc, int inicio, int fin ) {}
                int longitud();
                char obtenerCaracter( char caracter );
                SecuenciaCaracter* subSecuencia( int inicio, int fin );
                String* aString();
                virtual ~AbstractConstructorCadena();


that does not implement any method.
And the class that will implement the methods are as follows

class StringBuffer :  public AbstractConstructorCadena
            StringBuffer(const StringBuffer& orig);
            StringBuffer* anexar( char c );
            StringBuffer* anexar( SecuenciaCaracter* sc );
            StringBuffer* anexar(SecuenciaCaracter* sc, int inicio, int fin );
            virtual ~StringBuffer();


the problem is that I have the string buffer class that inherits from an abstract class does not implement AbstracConstructorCadena and methods tells me that no reference to the constructor of AbstracConstructorCadena, but then the solution is to declare them inline, but do not want to deploy the code in the StringBuffer class header but in the. cpp, and clearly to make the statement inline in the header, and perform the implementation in the. cpp fails me Some solution

sorry for my bad English


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.