Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Final Exam Study Guide - Object-Oriented Programming in C++ | COP 3330, Exams of Computer Science

Material Type: Exam; Class: OO PROGRAMMING; Subject: COMPUTER PROGRAMMING; University: Florida State University; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 08/31/2009

koofers-user-vz7
koofers-user-vz7 ๐Ÿ‡บ๐Ÿ‡ธ

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COP3330๎˜ƒFinal๎˜ƒExam๎˜ƒStudy๎˜ƒGuide๎˜ƒ
Spring๎˜ƒ2009๎˜ƒ
โ€ข Dynamic๎˜ƒStorage๎˜ƒAllocation๎˜ƒ
o Declare๎˜ƒpointers๎˜ƒof๎˜ƒclasses๎˜ƒ
o Declare๎˜ƒarray๎˜ƒof๎˜ƒpointers๎˜ƒof๎˜ƒclasses๎˜ƒ
o The๎˜ƒโ€œthisโ€๎˜ƒpointer๎˜ƒ
o โ€>๎˜ƒoperator๎˜ƒand๎˜ƒthe๎˜ƒ.๎˜ƒoperator๎˜ƒ
o &๎˜ƒthe๎˜ƒaddress๎˜ƒoperator๎˜ƒ
o The๎˜ƒโ€œnewโ€๎˜ƒoperator๎˜ƒ
o The๎˜ƒโ€œdeleteโ€๎˜ƒoperator๎˜ƒ
o Overload๎˜ƒthe๎˜ƒโ€œ=โ€๎˜ƒoperator๎˜ƒ
โ€ข Copy๎˜ƒconstructor๎˜ƒ
โ€ข Cโ€Style๎˜ƒStrings๎˜ƒ
o With๎˜ƒan๎˜ƒactual๎˜ƒsize๎˜ƒ
o Without๎˜ƒa๎˜ƒsize๎˜ƒbut๎˜ƒwith๎˜ƒinitialization๎˜ƒ
โ€ข C++๎˜ƒstring๎˜ƒtype๎˜ƒv.s.๎˜ƒCโ€Style๎˜ƒstrings๎˜ƒ
o Assignment๎˜ƒoperator๎˜ƒ=๎˜ƒ
o cin๎˜ƒ>>๎˜ƒ
o getline()๎˜ƒas๎˜ƒa๎˜ƒclass๎˜ƒmember๎˜ƒfunction๎˜ƒon๎˜ƒC++๎˜ƒstyle๎˜ƒstrings๎˜ƒ
โ€ข inheritance๎˜ƒ
o General๎˜ƒdescription๎˜ƒ
o How๎˜ƒone๎˜ƒclass๎˜ƒinherits๎˜ƒanother๎˜ƒ
o Protection๎˜ƒlevels๎˜ƒ
o Base๎˜ƒclass๎˜ƒ
o Derived๎˜ƒclass๎˜ƒ
o How๎˜ƒconstructors๎˜ƒwork๎˜ƒin๎˜ƒor๎˜ƒfor:๎˜ƒ
๎šƒ Base๎˜ƒclass๎˜ƒ
๎šƒ Derived๎˜ƒclass๎˜ƒ
โ€ข Virtual๎˜ƒFunctions๎˜ƒ
o What๎˜ƒis๎˜ƒa๎˜ƒโ€œVirtual๎˜ƒFunctionโ€๎˜ƒ
o Pure๎˜ƒvirtual๎˜ƒfunction๎˜ƒ
o Advantages/disadvantages๎˜ƒ
o How๎˜ƒto๎˜ƒdeclare๎˜ƒ
o How๎˜ƒto๎˜ƒuse๎˜ƒ
โ€ข Templates๎˜ƒ
o Templates๎˜ƒwill๎˜ƒalso๎˜ƒinclude๎˜ƒa๎˜ƒdiscussion๎˜ƒof๎˜ƒlink๎˜ƒlist๎˜ƒas๎˜ƒin๎˜ƒthe๎˜ƒproject๎˜ƒ
o Define๎˜ƒtemplates๎˜ƒ
o How๎˜ƒto๎˜ƒuse/invoke๎˜ƒtemplates๎˜ƒ
o Swap๎˜ƒfunction๎˜ƒexample๎˜ƒ
o Only๎˜ƒuse๎˜ƒclass๎˜ƒtemplates๎˜ƒ
โ€ข Recursion๎˜ƒ
o Base๎˜ƒCase/General๎˜ƒtheory๎˜ƒon๎˜ƒrecursion๎˜ƒ
o Advantages/Disadvantages๎˜ƒ
o Recursion๎˜ƒv.s.๎˜ƒiterative๎˜ƒsolution๎˜ƒ
o Blob๎˜ƒFinder๎˜ƒexample๎˜ƒ
o Factorial๎˜ƒexample๎˜ƒ
o ๎˜ƒ
โ€ข Exception๎˜ƒ
pf2

Partial preview of the text

Download Final Exam Study Guide - Object-Oriented Programming in C++ | COP 3330 and more Exams Computer Science in PDF only on Docsity!

COP3330 Final Exam Study Guide Spring 2009

  • Dynamic Storage Allocation o Declare pointers of classes o Declare array of pointers of classes o The โ€œthisโ€ pointer o โ€> operator and the. operator o & the address operator o The โ€œnewโ€ operator o The โ€œdeleteโ€ operator o Overload the โ€œ=โ€ operator
  • Copy constructor
  • Cโ€Style Strings o With an actual size o Without a size but with initialization
  • C++ string type v.s. Cโ€Style strings o Assignment operator = o cin >> o getline() as a class member function on C++ style strings
  • inheritance o General description o How one class inherits another o Protection levels o Base class o Derived class o How constructors work in or for: ยƒ Base class ยƒ Derived class
  • Virtual Functions o What is a โ€œVirtual Functionโ€ o Pure virtual function o Advantages/disadvantages o How to declare o How to use
  • Templates o Templates will also include a discussion of link list as in the project o Define templates o How to use/invoke templates o Swap function example o Only use class templates
  • Recursion o Base Case/General theory on recursion o Advantages/Disadvantages o Recursion v.s. iterative solution o Blob Finder example o Factorial example o
  • Exception

o What are exceptions o Try o Throw o Catch