目录
类的访问权限:private、protected、public
继承时,父类的析构函数是否为虚函数?构造函数能不能为虚函数?为什么?
static关键字:修饰局部变量、全局变量、类中成员变量、类中成员函数
四种类型转换:static_cast、dynamic_cast、const_cast、reinterpret_cast
std::is_same_v、is_convertible、is_convertible_v
目录
类的访问权限:private、protected、public
继承时,父类的析构函数是否为虚函数?构造函数能不能为虚函数?为什么?
static关键字:修饰局部变量、全局变量、类中成员变量、类中成员函数
四种类型转换:static_cast、dynamic_cast、const_cast、reinterpret_cast
std::is_same_v、is_convertible、is_convertible_v