【单选题】【消耗次数:1】
实现运行时的多态性要使用()
构造函数
析构函数
重载函数
虚函数
参考答案:
复制
纠错
相关题目
【单选题】 实现运行时的多态性要使用()
①  构造函数
②  析构函数
③  重载函数
④  虚函数
【单选题】 C++实现运行时的多态性是通过什么机制实现的()
①  重载函数
②  构造函数
③  析构函数
④  虚函数
【单选题】 ()不是析构函数的特征。
①  一个类中只能定义一个析构函数
②  析构函数名与类名相同
③  析构函数只是用来释放对象,所以析构函数是空函数
④  析构函数不指定数据类型,并且也没有参数
【判断题】 有返回值的函数,结束函数运行时可以不使用return语句。
①  正确
②  错误
【单选题】 下面对析构函数的正确描述是
①  系统不能提供默认的析构函数
②  析构函数必须由用户定义
③  析构函数没有参数
④  析构函数可以设置默认参数
【单选题】 下列函数中,是类MyClass的析构函数的是()。
①  ~Myclass();
②  MyClass();
③  ~MyClass();
④  ~MyClass(intn);
【单选题】 下列关于析构函数描述正确的是( )
①  可以重载
②  函数体中必须有delete语句
③  返回类型必须是void类型
④  不能指定返回类型
【单选题】 下列关于析构函数描述正确的是( )
①  可以重载
②  函数体中必须有delete语句
③  返回类型必须是void类型
④  不能指定返回类型
【单选题】 一个类的析构函数()
①  至多可有两个
②  允许重载
③  只能是缺省的
④  是唯一的
【单选题】 使用重载函数的目的是
①  共享函数数据
②  减少代码量
③  优化运行效率
④  提高可读性
随机题目
【单选题】 This technology has been ?around for a long time, but not until recent years _______ it in marketing.
①  businesses employed
②  did businesses employ
③  businesses had employed?
④  had businesses employed
【单选题】 And there,almost________in the big chair,sat her little brother,who never had to be told to keep quiet.
①  having lost
②  losing
③  to be lost
④  lost
【单选题】 Neither of them________the snake.
①  dares catches
②  dare to catch
③  dare catching
④  dare catch
【单选题】 Ourclassroomis ______ largerthantheirs.
①  more
②  quite
③  very
④  much
【单选题】 Look out ! That tree_______ fall down.
①  is going to
②  will be
③  shall
④  would
【单选题】 Itwasveryhotyesterday,butitis _______today.
①  evenhotter
②  morehotter
③  muchmorehot
④  muchhot
【单选题】 He________listen to pop music,but now he________dancing.
①  is used to;used to
②  used to;is used to
③  used to;is used for
④  is used for;used to
【单选题】 ________,the subject was always in my mind.
①  Walking or sleeping
②  Walking or slept
③  Having walked or slept
④  To walk and sleep
【单选题】 The greatest tragedy in life is not to lose too much,but care about too much,_________ is an important reason people are not happy.
①  who
②  that
③  what
④  which
【单选题】 You________return the book now. You can keep it till next week if you like.
①  cant
②  mustnt
③  neednt
④  may not