Swine2 sol - CSCI.1100 Computer Science I Swine Quiz 2...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI.1100 Computer Science I Swine Quiz 2 December 7, 2009 Closed book, closed notes, no computers or calculators of any kind. Name: RCS login: Circle your lab section: (01 MTh 10:00) (02 MTh 12:00) (03 MTh 2:00) (04 MTh 4:00) (05 MTh 6:00) (06 MTh 10:00) (07 TF 10:00) (08 TF 12:00) (09 MTh 12:00) (10 TF 2:00) (11 MTh 4:00) 1. In general, in a well defined class which of the below is most often true (1 point) A. Most data and most methods are public B. Most data and most methods are private C. Most methods are private, most data is public D. Most methods are public, most data is private 2. Here is some code that defines the start of a class. #include <iostream> #include <string> #include <vector> #include “acct.h” using namespace std; class bank { private: string bank_name; string bank_type; vector <acct> accounts; public: int number_of_accountss (); acct get_account (int index); double cash_on_hand (); ...
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
(a) Write the implementation code for a new member function that adds a new
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Swine2 sol - CSCI.1100 Computer Science I Swine Quiz 2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online