RAD Studio
ContentsIndex
PreviousUpNext
E2464: 'virtual' can only be used with member functions

A data member has been declared with the virtual specifier. 

Only member functions can be declared virtual. 

For example:

class myclass
{
public:
   virtual int a;    //error
};
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!