Discuss why the reusability of a class makes it useful.
What will be an ideal response?
The concept of a class is useful because of its reusability. For example, if you invite me to a graduation party, I automatically know many things about the party object. I assume that there will be attributes such as a starting time, a number of guests, some quantity of food, and gifts. I understand parties because of my previous knowledge of the Party class, of which all parties are tangible examples or instances. 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 instantiated from specific classes.
You might also like to view...
In the accompanying figure, Item 3 points to where you click to select a ____.
A. different folder or drive B. file type to display C. document title to display D. different document view
What is the MPLS standard, and why is it often used by ISPs to move traffic from one customer site to another?
What will be an ideal response?
A(n) ____________________ is an application error that occurs when more data is sent to a program than it is designed to handle.
Fill in the blank(s) with the appropriate word(s).
Operational feasibility is an assessment of whether the organization can acquire the technology necessary to implement and support the proposed control.
Answer the following statement true (T) or false (F)