[Qt-interest] = 0 ?

Thomas Dähling t.daehling at googlemail.com
Tue Feb 23 13:30:04 CET 2010


That's a basic C++ question. The interface you mentioned means that
this method is "pure virtual" and thus must be implemented by all
classes which are implementing that interface. Also note that classes
with pure virtual functions cannot be instantiated.

2010/2/23 Lucas Pereira Caixeta <lpcnew at gmail.com>:
>
> Hi all,
>
> In my interface i have this method: virtual String getName () = 0;
>
> why this method have  "=0" in the end?
> so that it serves?
>
>
> Thanks
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list