BTP200 - The Object-Oriented Paradigm Using C++

Outline info
Semester
School
Last revision date 2024-01-29 00:32:45.086
Last review date 2024-04-01 00:15:05.905


Subject Title
The Object-Oriented Paradigm Using C++

Subject Description

This subject introduces the student to object-oriented programming. The student learns to build reusable objects, encapsulate data and logic within a class, inherit one class from another and implement polymorphism.  This subject uses the C++ programming language exclusively and establishes a foundation for learning system analysis and design and more advanced concepts as implemented in languages such as C++, Java, C# and Objective-C.

Credit Status
1 credit (3 units)
Required for BSD - Bachelor of Technology (Software Development)

Learning Outcomes
Upon successful completion of this subject the student will be able to:

1 - Design classes with dynamically allocated resources to model the components of a programming solution
2 - Design member functions using logic constructs to solve tasks of linear complexity
3 - Relate classes using inheritance hierarchies to minimize the duplication of object code
4 - Design polymorphic objects to amplify the reusability of program code
5 - Use stream objects to interact with users and access persistent data
6 - Trace the execution of object-oriented code to validate its correctness
7 - Code a complete program using polymorphic objects to implement a specified coding plan
8 - Explain the purpose of an object-oriented programming feature to inform a business person
9 - Develop an algorithm using object-oriented concepts to solve a simple programming problem

Essential Employability Skills
    •  Execute mathematical operations accurately.

    •  Apply a systematic approach to solve problems.

    •  Manage the use of time and other resources to complete projects.

Academic Integrity
Seneca upholds a learning community that values academic integrity, honesty, fairness, trust, respect, responsibility and courage. These values enhance Seneca's commitment to deliver high-quality education and teaching excellence, while supporting a positive learning environment. Ensure that you are aware of Seneca's Academic Integrity Policy which can be found at: http://www.senecapolytechnic.ca/about/policies/academic-integrity-policy.html Review section 2 of the policy for details regarding approaches to supporting integrity. Section 2.3 and Appendix B of the policy describe various sanctions that can be applied, if there is suspected academic misconduct (e.g., contract cheating, cheating, falsification, impersonation or plagiarism).

Please visit the Academic Integrity website http://open2.senecac.on.ca/sites/academic-integrity/for-students to understand and learn more about how to prepare and submit work so that it supports academic integrity, and to avoid academic misconduct.

Discrimination/Harassment
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecapolytechnic.ca.

Accommodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Accessibility Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

Camera Use and Recordings - Synchronous (Live) Classes
Synchronous (live) classes may be delivered in person, in a Flexible Learning space, or online through a Seneca web conferencing platform such as MS Teams or Zoom. Flexible Learning spaces are equipped with cameras, microphones, monitors and speakers that capture and stream instructor and student interactions, providing an in-person experience for students choosing to study online.

Students joining a live class online may be required to have a working camera in order to participate, or for certain activities (e.g. group work, assessments), and high-speed broadband access (e.g. Cable, DSL) is highly recommended. In the event students encounter circumstances that impact their ability to join the platform with their camera on, they should reach out to the professor to discuss. Live classes may be recorded and made available to students to support access to course content and promote student learning and success.

By attending live classes, students are consenting to the collection and use of their personal information for the purposes of administering the class and associated coursework. To learn more about Seneca's privacy practices, visit Privacy Notice.

Prerequisite(s)
BTP100

Topic Outline

  • Introduction - 5%
    • Complexity, Languages, Namespaces
    • Object Terminology
      • Objects and Classes
      • Encapsulation
      • Inheritance
      • Polymorphism
    • Modular Programming
      • Stages of Compilation
      • Unit Tests
  • Foundations - 20%
    • Basic Concepts
      • Declarations and Definitions
      • Scope
      • Prototypes and Overloading
      • References
    • Member Functions and Privacy
      • Member Functions
      • Privacy
      • Inlining
    • Input and Output Examples
      • Output Objects
      • Input Objects
      • State
      • Manipulators, Format Control, Robust Validation
    • Dynamic Memory
      • Allocation and Deallocation - new and delete
      • Memory Issues
  • Encapsulation - 30%
    • Classes
      • Constructors and Destructors
      • Construction oand Destruction of Arrays
      • Overloading Constructors
        • Single Argument Constructors
    • The Current Object
      • this
    • Classes with Resources
      • Copy Constructor
      • Assignment Operator
      • String Class
    • Member Operators
      • Unary Operations
      • Binary Operations
    • Helper Functions
      • Independent Helpers (non-friends)
      • Helper Operators
      • Friendship
        • Friend Classes
    • Custom I/O Operators
    • Custom File Operators
      • Custom Types
  • Inheritance - 15%
    • Derived Classes
      • Hierarchies
      • Base and Derived syntax
      • Access - public, protected, private
    • Functions in a Hierarchy
      • Shadowing
      • Constructors and Destructors
        • Inherited Constructors
      • Helper Operators
    • Derived Classes and Resources
      • Constructors and Destructors
      • Copy Constructors
      • Assignment Operators
  • Polymorphism - 25%
    • Overview of Polymorphism
      • Types
      • Categories - coercion, overloading, inclusion, parametric
    • Virtual Functions
      • Bindings - early, late
      • Polymorphic Objects
    • Abstract Base Classes
      • Pure Virtual Functions
      • Arrays of Pointers
      • Unit Tests on an Interface
    • Templates
      • Function Templates
      • Simple Class Templates
  • Language Standards - 5%
    • The ISO/IEC Standard 14882:2011
      • History - pre-standard C++, C++98, C++11
      • Type Safety - casts, pre-standard libraries
      • Differences between C++ and C
      • Legacy Code Issues

Mode of Instruction
Modes: In-class lecture, in-class exercises, and hands-on activity
Hours per week: 4
Room configurations: Classroom, and computer lab
Typical scheduling pattern: Winter and summer terms

Prescribed Texts
Introduction to Object-Oriented Programming Using C++11, July 2016 Edition
by Chris M. Szalwinski
published by Seneca College
Available in the bookstore and online

Reference Material
BTP200 Web Notes by Chris Szalwinski
https://scs.senecac.on.ca/~btp200

Required Supplies
None

Student Progression and Promotion Policy

  • Must satisfactorily complete project
  • Must have weighted passing average of mid-term and final
  • Must have overall passing average

http://www.senecapolytechnic.ca/about/policies/student-progression-and-promotion-policy.html

Grading Policyhttp://www.senecapolytechnic.ca/about/policies/grading-policy.html

A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
OR
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecapolytechnic.ca/about/policies/academics-and-student-services.html) or at Seneca's Registrar's Offices. (https://www.senecapolytechnic.ca/registrar.html).


Modes of Evaluation
Workshops – 25%
Project – 15%
Quizzes – 15%
Mid-term – 15%
Final Test – 30%


Approved by: Kathy Dumanski