是否可以在 C++ 语言中在运行时更改类属性。例如如下:
class base
{
public:
//public members
private :
//private members
};
class derived1 : attribute base
{
public:
//public members
base::<base method name> //so that it an be made accessible from the main - outside the class.
private:
//private members
};
属性-public、private、protected 可以在运行时动态更改吗?
Rgds,软软的