Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Introduction to C++
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
  • Learn at your own pace... anytime, anywhere!

Object Oriented Programming

  • Procedural programming methods have been shown up to now
  • One strength of C++ over C is the ability to implement Object Oriented Programming (OOP) techniques
  • “Object” is a collection of data (attributes) that describe the object, and functions (methods) that operate on that data
  • Object “class” defines the workings of an object, its attributes (data) and methods (functions)
  • Object Oriented Programming emphasizes important concepts: Abstraction, Encapsulation, Inheritance and Polymorphism
  • Classes can “inherit” attributes and behaviors from other classes
  • C++ has “multiple inheritance” which allows a class to inherit from more than one other class
  • Objects are “constructed” and “destructed” to allocate and de-allocate memory
  • Here are links with more discussion about OOP in C++:

Object Oriented Programming

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Overview 0:15
  • Concepts 1:53
    • Object Oriented Programming (OOP)
  • Some Terminology 3:34
    • Object Defined
    • Class Defined
    • Instance Defined
    • Example
  • Abstraction 5:21
    • Emphasis on Essential
    • Emphasis on Characteristics
  • Encapsulation 7:29
    • Private Data
    • Public Methods
    • Protected Data
  • Inheritance 10:08
    • Example
  • Polymorphism 11:39
    • Example: Operator Overloading
  • 'Is-a' vs. 'Has-a' 14:00
  • Multiple Inheritance 15:07
    • Example
    • Diamond Problem
  • Constructors / Destructors 18:27
  • My Kind of Inheritance 22:25