• 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 4 out of 113 pages
Summary

Cos3711 Summary Study Notes 2022 Update.

Document preview thumbnail
Preview 4 out of 113 pages

COS3711 SUMMARY STUDY NOTES 2022 UPDATE. COS3711 - Advanced Programming

Content preview

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 |
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 |
Distribution of this document is illegal

Document information

Uploaded on
August 30, 2022
Number of pages
113
Written in
2022/2023
Type
Summary
$3.50

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.
ExcelAcademia2026
3.7
(389)
Sold
2307
Followers
1650
Items
8967
Last sold
21 hours 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