一个公有派生类的对象在使用上可以被当作基类的对象,反之则禁止。具体表现在:
This question already has answers here: Getting the name of a variable as a string (31 answers) Closed 2 months ago.