RAD Studio |  |

E2464: 'virtual' can only be used with member functions (C++)

A data member has been declared with the virtual specifier.

Only member functions can be declared virtual.

For example:

Copy Code

    class myclass
    {
    public:
       virtual int a;    //error
    };

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!