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 standardparameter.PTS:1REF:450
2.In OO languages, a default constructor is created automatically by the compiler for every class youwrite.PTS:1REF:450
3.Any constructor you write must have the same name as the class it constructs, and it cannot have areturn type.PTS:1REF:450
4.You can write a default constructor, which is a constructor that accepts parameters.PTS:1REF:453
5.You cannot provide parameters to a destructor; it must have an empty parameter list.PTS:1REF:456
6.It makes sense that a parent class object has access to its child’s data and methods.PTS:1REF:465
7.By using standard component classes, programmers are assured that the GUI components in theirprograms have the same look and feel as those in other programs.PTS:1REF:472
8.The built-inExceptions in a programming language can cover every condition that might be anExceptionin your applications.PTS:1REF:478
9.Whether you instantiate objects from classes you have created or from those created by others, yousave development time because each object automatically includes appropriate, reliable methods andattributes.PTS:1REF:479
10.When using existing objects, you need to concentrate only on the interface to those objects, not on theinternal instructions that make them work.PTS:1REF:479
We have textbook solutions for you!
/JavaScript-The-Web-Warrior-Series-6th-Edition-9781305078444-2709/
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 2
JavaScript: The Web Warrior Series
Vodnik
Expert Verified
MULTIPLE CHOICE1.If a constructor requires arguments, it is a ____ constructor.PTS:1REF:450
2.A method’s name and a list of argument types together are its ____.PTS:1REF:453
3.The most common way to declare a destructor explicitly is to use an identifier that consists of ____.a.a colon followed by the class nameb.a period followed by the class namec.a tilde followed by the class named.an exclamation mark followed by the class nameANS: CPTS:1REF:456
4.The relationship created with composition is called a(n) ____ relationship.PTS:1REF:458
5.A(n) ____ in a class diagram indicates public access.PTS:1REF:461

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 8 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
JavaScript: The Web Warrior Series
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 2
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture