• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 19 pages
Exam (elaborations)

CPSC 2150 final || A+ Verified Solutions.

Document preview thumbnail
Preview 3 out of 19 pages

grouping related data and operations together correct answers encapsulation Encapsulation is done with _________________ through ________________, keeps data in sync correct answers classes and objects, states and methods how we control access to encapsulated data and operations correct answers information hiding information hiding is done with __________________ correct answers visibility settings We hide information to keep data _________________, keep data _________________, keep data _______________, and ______________ correct answers in sync, accurate, secure, not overwhelm with implementation Through ____________ methods provided by a class, access to the ____________ representation can be controlled correct answers public, private every module has it's own specific role and concerns, then work together to solve a more complicated problem; ____________ and _____________ are modules correct answers separation of concerns, objects, classes A good design helps with correct answers reusability, debugging, adapting to change, Encapsulating related things makes it easier to keep _____________ correct answers related data in sync become the standard policy governing separation of concerns across modern software engigneering correct answers design by contract design by contract also can help _______________ if done well correct answers hide information Purpose of contracts correct answers define responsibilities of client and implementer, communication between the two Contracts ___________ by design correct answers hide information defines the client's responsibilities correct answers precondition contract What does a precondition contract include/discuss correct answers parameters, steps that need to have already happened, current state of the object, what would cause this code to fail reasons for using precondition contracts correct answers efficiency, input validation defines the implementer's responsibilities correct answers postcondition contract What does a postcondition include/discuss? correct answers tells what the code does, return values, events, state of the object


Document information

Uploaded on
March 25, 2024
Number of pages
19
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ProPerfomer
3.8
(84)
Sold
451
Followers
322
Items
8858
Last sold
2 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.