9781111969752_TB_ch11 - Chapter 11 More Object-Oriented Programming Concepts TRUE\/FALSE 1 In object-oriented terminology default constructor means a

9781111969752_TB_ch11 - Chapter 11 More Object-Oriented...

This preview shows page 1 - 3 out of 8 pages.

Chapter 11: More Object-Oriented Programming ConceptsTRUE/FALSE1.In object-oriented terminology, “default constructor” means a constructor with a single standard parameter.ANS: FPTS:1REF:4502.In OO languages, a default constructor is created automatically by the compiler for every class you write.ANS: TPTS:1REF:4503.Any constructor you write must have the same name as the class it constructs, and it cannot have a return type.ANS: TPTS:1REF:4504.You can write a default constructor, which is a constructor that accepts parameters.ANS: FPTS:1REF:4535.You cannot provide parameters to a destructor; it must have an empty parameter list.ANS: TPTS:1REF:4566.It makes sense that a parent class object has access to its child’s data and methods.ANS: FPTS:1REF:4657.By using standard component classes, programmers are assured that the GUI components in their programs have the same look and feel as those in other programs.ANS: TPTS:1REF:4728.The built-in Exceptions in a programming language can cover every condition that might be an Exceptionin your applications.ANS: FPTS:1REF:4789.Whether you instantiate objects from classes you have created or from those created by others, you save development time because each object automatically includes appropriate, reliable methods and attributes.ANS: TPTS:1REF:47910.When using existing objects, you need to concentrate only on the interface to those objects, not on the internal instructions that make them work.ANS: TPTS:1REF:479
MULTIPLE CHOICE1.If a constructor requires arguments, it is a ____ constructor.a.reliablec.defaultb.privated.nondefaultANS: DPTS:1REF:4502.A method’s name and a list of argument types together are its ____.3.The most common way to declare a destructor explicitly is to use an identifier that consists of ____.4.The relationship created with composition is called a(n) ____ relationship.5.A(n) ____ in a class diagram indicates public access.a.minus signc.plus signb.diamondd.exclamation pointANS: CPTS:1REF:461

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture