[Qt-interest] = 0 ?

Yuvraj yuvraj.ragupathi at indieontech.com
Tue Feb 23 13:33:07 CET 2010


Lucas Pereira Caixeta wrote:
>
> 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
>   
It is pure virtual function. Pure virtual function will end with " =0 
".You can not create a object to that class. You can use that class as a 
interface  purpose  only

Thanks

Yuvraj



More information about the Qt-interest-old mailing list