【单选题】【消耗次数:1】
如果没有显式定义构造函数(包括复制构造函数),C++编译器就()
出现编译错误
没有构造函数
必须显示定义
隐式定义默认的构造函数
参考答案:
复制
纠错
相关题目
【单选题】 如果没有为一个类定义任何构造函数的情况下,下列描述正确的是( )
①  编译器总是自动创建一个不带参数的构造函数
②  这个类没有构造函数
③  这个类不需要构造函数
④  该类不能通过编译
【单选题】 如果没有为一个类定义任何构造函数的情况下,下列描述正确的是( )
①  编译器总是自动创建一个不带参数的构造函数
②  这个类没有构造函数
③  这个类不需要构造函数
④  该类不能通过编译
【单选题】 具有转换函数功能的构造函数,应该是()。
①  不带参数的构造函数
②  带有一个参数的构造函数
③  带有两个以上参数的构造函数
④  缺省构造函数
【单选题】 类的构造函数被自动调用执行的情况是在定义该类的()
①  成员函数时
②  数据成员时
③  对象时
④  友元函数时
【单选题】 构造函数不具备的特征是()
①  构造函数的函数名与类名相同
②  构造函数可以重载
③  构造函数可以设置默认参数
④  构造函数必须指定类型说明
【单选题】 以下关于构造函数的描述错误的是( )。
①  构造函数的返回类型只能是void型。
②  构造函数是类的一种特殊函数,它的方法名必须与类名相同。
③  构造函数的主要作用是完成对类的对象的初始化工作。
④  一般在创建新对象时,系统会自动调用构造函数。
【单选题】 下列说法中,有关构造函数是正确的是()
①  任何一类必定有构造函数
②  可定义没有构造函数的类
③  构造函数不能重载
④  任何一类必定有缺省的构造函数
【单选题】 下列说法中,有关构造函数是正确的是
①  任何一类必定有构造函数
②  可定义没有构造函数的类
③  构造函数不能重载
④  任何一类必定有缺省的构造函数
【单选题】 下列关于构造函数说法不正确的是()
①  构造函数必须与类同名
②  构造函数可以省略不写
③  构造函数必须有返回值
④  在构造函数中可以对类中的成员进行初始化
【判断题】 构造函数用于创建类的实例对象,构造函数名应与类名相同,返回类型为void。
①  正确
②  错误
随机题目
【单选题】 What are two grammar practice activities?
①  Mechanical practice and meaningful practice
②  Volume practice and communicative practice
③  Interest practice and meaningful practice
④  Mechanical practice and success oriented practice.
【单选题】 What are two broad categories of knowledge?
①  Implicit knowledge and explicit knowledge
②  Obvious knowledge and unobvious knowledge
③  Inductive knowledge and deductive knowledge
④  Refereed knowledge and inferred knowledge.
【单选题】 Which of the following steps are typical for the deductive grammar teaching method?
①  Give examples→explain rules→students do practice activities
②  Authentic language data is provided→induces learners to realize grammar rules→apply the new structure to produce sentences (the inductive method)
③  Explicit rules are give to students→Authentic language data is provided→apply the new structure to produce sentences (the guided discovery method)
④  All of the above.
【单选题】 Which of the following statement is not true?
①  Grammatical competence is essential for communication
②  There is a positive role of instruction for grammar learning
③  Grammar teaching can enhance learner proficiency
④  Grammar learning is completely useless for children.
【单选题】 Which of the following is not grammar presentation method?
①  Deductive method
②  Inductive method
③  Guided discovery method
④  Communicative teaching method.
【单选题】 What is the realistic goal of teaching pronunciation?
①  Consistency
②  Intellegibility
③  Communicative efficiency
④  All of the above.
【单选题】 Which type does the following production practice belong to? She sells sea shells on the seashore.
①  Make up sentences
②  Using meaningful context
③  Using pictures
④  Using tongue twisters.
【单选题】 Which type does the following production practice belong to? The students repeat what the teacher says. This activity can practice individual sounds, individual words, groups of words, and sentences.
①  Listen and repeat
②  Fill in the blanks
③  Make up sentences
④  Using meaningful context
【单选题】 What does the falling intonation on the question “where do you live ?” indicate?
①  I am telling you something you do not know
②  I have not finished yet
③  I am asking a genuine question
④  I know you have told me before.
【单选题】 What is reflected as important in the following example? A. Would you please turn down the radio a little bit? B. Sorry. ↘ (no, I do not want to.) Or B. Sorry? ↗ (what did you say?)
①  Stress
②  Intonation
③  Sounds
④  Pitch Part