Jump to page content Jump to navigation

College Board

AP Central

AP Course Audit Web Site
Become an AP Reader
Click for more information about College Board Online Events


Print Page
Home > The Program > History > The C++ Subset: Classes

The C++ Subset: Classes

Last Updated: 8/17/00
A and AB course AB course only Comment

classes


Read, use, and modify classes Design and implement classes. AP CS A students read class declarations, write client programs, add/modify member functions.
Read, use, and implement constructors, including initializer lists. Constructors should use initializer lists as opposed to assignments to data because sometimes initializers are required, so use them for uniformity.
Differentiate between public and private. No public data are used in classes. Since inheritance is not part of AP CS, there is no reason to use protected functions/data.
Read class definitions that include use of *this. Use, modify, and implement class member functions that include *this.
Implement overloaded functions; use overloaded operators. Implement overloaded operators, including operator<< (but friend not used). Students will NOT be tested on recognizing that functions differing in return type only are overloaded incorrectly.
Use and implement const member functions. Recognize when to make a member function const.
Use AP string class. The AP string class is a limited, safe subset of the standard string class.
Use templated AP vector and matrix classes. Use and reimplement templated AP stack and queue classes.
Design and implement templated classes and functions.
Differentiate interface and implementation of class (.h and .cpp file). C++ permits the ideas to be treated separately.
Read, use, and implement structs, implementing constructors and initalizer lists in structs when appropriate. Implement linked lists and trees using structs. A struct is a class in which all data is public. Constructors facilitate dynamic creation of structs.



  MY AP CENTRAL
    Course and Email Newsletter Preferences
  AP COURSES AND EXAMS
    Course Home Pages
    Course Descriptions
    The Course Audit
    Sample Syllabi
    Teachers' Resources
    Exam Calendar and Fees
    Exam Questions
    AP Credit Policy Information
  PRE-AP
    Teachers' Corner
    Publications
  AP COMMUNITY
    About Electronic Discussion Groups
    Become an AP Exam Reader

Back to top