Toggle navigation
Schools
Login
Sign Up
All Schools
UBC Vancouver
CPSC
Courses in CPSC
CPSC 260 | Object-Oriented Programming
Documents:
39
Popular Documents from UBC Vancouver
Name: MARKING KEY Student No: MARKING KEY CPSC 260 Midterm #2 Thursday, November 15, 2007 Page 9 of 12 4. Non-member, non-friend overloaded operators { 7 marks } In Assignment 4 an overloaded “equality” operator ( == ) was implemented for the Deque c
CPSC 260 ADTs and C++ Classes Slide 7 Constructor Implicitly invoked for each instance of IntVector • performs any necessary initialization of member variables • always has the same name as the class • constructor does not have a return type IntVecto
Name: MARKING KEY Student No: MARKING KEY CPSC 260 Midterm 1 Tuesday, February 12, 2008 Page 5 of 17 (continued from previous page) { 10 marks } (u) 40 execution is the most basic control structure in C++. (v) 24 The following is an example
CPSC 260 Exception Handling Slide 13 What this means to a client Any code that • calls a function that might throw an exception • calls a function that calls a function that might throw an exception • etc. • should be wrapped in try-catch blocks • we
MARKING KEY The University of British Columbia MARKING KEY Computer Science 260 Final Examination 3:30 PM, Monday, April 23, 2007 Instructor: K. S. Booth Time: 150 minutes (2 1/2 hours) Total marks: 150 First Last Student No Printed first name Printe