PTS 1 REF 409 TOP Critical Thinking 3 Discuss why the reusability of a class

Pts 1 ref 409 top critical thinking 3 discuss why the

This preview shows page 6 - 8 out of 8 pages.

PTS:1REF:409TOP:Critical Thinking3.Discuss why the reusability of a class makes it useful.ANS:The concept of a class is useful because of its reusability. For example, if you invite me to a graduationparty, I automatically know many things about the object (the party). I assume there will be attributes such as a starting time, a number of guests, some quantity of food, and some nature of gifts. I understand parties because of my previous knowledge of the Party class, of which all parties are members. I don’t know the number of guests or the date or time of this particular party, but I understand that because all parties have a date and time, then this one must as well. Similarly, even though every stock purchase is unique, each must have a dollar amount and a number of shares. All objects have predictable attributes because they are members of certain classes.PTS:1REF:410TOP:Critical Thinking4.Explain encapsulation and information hiding.
Background image
5.List the three parts of a class definition.6.Describe what class diagrams list by convention.
Background image
Image of page 8

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