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
Background image
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
Background image
Image of page 3

You've reached the end of your free preview.

Want to read all 8 pages?

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes