100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3711 SUMMARY STUDY NOTES 2022 UPDATE. R65,23   Add to cart

Summary

COS3711 SUMMARY STUDY NOTES 2022 UPDATE.

 19 views  1 purchase

COS3711 SUMMARY STUDY NOTES 2022 UPDATE. COS3711 - Advanced Programming

Preview 4 out of 113  pages

  • August 30, 2022
  • 113
  • 2022/2023
  • Summary
All documents for this subject (6)
avatar-seller
STUDYCENTER2024
COS3711
SUMMARY
STUDY NOTES
2022 UPDATE.

, Stuvia.com - The Marketplace to Buy and Sell your Study Material




UML DIAGRAMS & CLASS DESIGN:
Syntax:




Syntax for variable and parameters: - NameVar : Type
Syntax for functions: Basically the same except it has () with parameters in
them. E.g. +FuncName(parameter list): return Type
Note: Parameters must also be name: Type
Note: Constructors don’t have type
When we inherit then child class point to parent:




Arrow points to parent class.

, Stuvia.com - The Marketplace to Buy and Sell your Study Material




When they say client they mean a class that will manage all the other classes.
Client can be class, function or just code (driver program).




Assuming that PhoneReader is class that
reads in Phone’s from a file and convert them to QList of Phone objects.


Example:




Downloaded by: STUDYLAB2022 | VARSITYPRO90@GMAIL.COM
Distribution of this document is illegal

, Stuvia.com - The Marketplace to Buy and Sell your Study Material




Note if they say data members should not have to be repeated in sub-classes
means that they should be under protected.
The Reader and Writer objects can either use FilmList object or QList<Film>(i.e.
read function can return FilmList(in this case this case) or it can return
QList<Film>. But always try for FilmList
Example:




Answer

Example:




• MyPrepaid and MyContract inherit from Contract
• ContractList contains (diamond) Contract.
• Contract inherits from QObject
• Note the # sign is protected specifier.
Note:
This arrow is for inheritance:




Downloaded by: STUDYLAB2022 | VARSITYPRO90@GMAIL.COM
Distribution of this document is illegal

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller STUDYCENTER2024. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R65,23. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73918 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R65,23  1x  sold
  • (0)
  Buy now