在下列关于类的继承描述中,正确的是()。
#include <iostream> class Base { private: int privateVar; protected: int protectedVar; public: int publicVar; }; class Derived : public Base { public: int derivedVar; }; int main() { Base baseObj; Derived derivedObj; std::cout << "Size of Base: " << sizeof(baseObj) << " bytes" << std::endl; std::cout << "Size of Derived: " << sizeof(derivedObj) << " bytes" << std::endl; return 0; }