[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ Blues.



Hi Adrian,


AR> #include <iostream.h>
AR>
AR> class  Class1{
AR>   public:
AR>
AR>   void Meth(void){};
AR>   void Meth(int i){
AR>     cout << i << " Miles per Hour\n";
AR>   }
AR> };
AR>
AR> class Class2 : public Class1{
AR>   public:
AR>   void Meth(void){cout << "Vrrroooom ";}
AR> };
AR>
AR>
AR>
AR> void main() {
AR> Class2 o2;
AR> 	o2.Meth(23);
AR> }

I checked some mails to a similar topic, and according to them this should  
be possible.

However, g++ 2.8.1 still aborts with the same error message. I'll check  
the C++ specs (Stroustrup: "The C++ Programming Language, 3rd Ed.") till  
next weekend about it.

BTW: I just tried a trivial exception handling program with g++ 2.8.1 - it  
worked fine ;)

I think gcc 2.8.1 could be the solution to many of our C++ problems...


Cu
        Christian


Christian Reiniger (Germany)
e-mail: warewolf@chris2.mayn.de