下面哪份代码(C++)最接近对MenuItem的描述
A.
class MenuItem { private: virtual void Click() =0; public: Command* command; };
B.
class MenuItem { public: virtual void Click() = 0; private: Command* command; };
C.
class MenuItem { private: virtual void Click() = 0; void undo(); public: Command* command; };
D.
class menuitem { public: virtual void Click() = 0; private: Command* command; };