Download presentation
Presentation is loading. Please wait.
1
COP 3330 Object-oriented Programming in C++
Midterm Review & Study Guide Spring 2019
2
Midterm Exam Time: Thursday 2/28, 11am-12:15pm
Plan your time well Venue: HWC 3100, in-class exam Close-everything exam No calculators or other electronic devices Bring your FSUID! Don’t do plagiarism!
3
Midterm Exam 15% of your final score Format Multi-choice questions
True-false questions Simple answer questions Writing function signatures/declarations, definitions, usage Writing simple classes Implementating basic logic or algorithms (Maybe) bonus questions
4
Midterm Exam Coverage How to prepare?
From “Introduction” to “Arrays and Classes, Vectors” Materials in both the slides and the demo code How to prepare? Review the materials (notes/code) carefully and make sure you understand them Reexamine the homework and make sure you can work out the solutions independently by hand Discuss with your peer students Discuss with the TA and me Relax
5
Object-oriented Programming
What and why? Three key principles in OO programming Objects and Classes Definitions Declaration and definition of a class Syntax of declaring, defining, and using member data/variables, and member functions Composition, arrays/vectors, …… Const Protection/access levels Public, protected, private Interface of a class Accessors (getters) and mutators (setters)
6
Constructors & Destructors
What is a constructor? Declaration, definition, and calls of a constructor Default constructors Parameterized constructors Conversion constructors Explicit vs. implicit conversions Initialization list Destructors
7
Friend Functions What and Why? How to declare, define, and use them?
Differences between friend functions and member functions (syntax and semantics)
8
Operator Overloading What and Why?
How to overload operators? As a member function? As a friend function? Declaration, definition, and usage Arithmetic operators Comparison operators Extraction & insertion operators Prefix & postfix operators
9
Break a Leg!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.