Skip to content
KnowledgeCity

C++: Object Orientation

Learn how to create object based code in C++ programming
Preview the first lesson free — get full access to all 8 lessons.
Course: On-Demand
Beginner Provider Barbara Hecker  8 Lessons ·  41m  in English 

Course Description

Object Orientation

This course will teach you what it means for code to be object orientated, as opposed to logic orientated. C++ is a language that works off of accessing stored data within objects, or sections of code. You will learn the difference in classes and objects, as well as functions on how to create and deconstruct them. Building off of that, you will learn how inheritance works amongst objects, as well as how to reference objects within your code.

Learning Objectives

Skills

What You'll Learn

  • Use classes and objects to structure code in an object-oriented way
  • Construct and deconstruct objects within code using constructor and destructor functions
  • Apply setter and getter functions to access stored data within objects
  • Use inheritance and virtual methods among objects
  • Use referencing in code, including passing by reference
  • Handle exceptions in C++

Key Takeaways

  • Object-oriented code works by accessing stored data within objects, or sections of code, as opposed to logic-oriented code.
  • C++ distinguishes between classes and objects, and provides functions to create and deconstruct objects.
  • Inheritance allows objects to build upon one another, supporting the branching of code.
  • Referencing lets you refer to objects within your code, including passing by reference.
  • The course covers object-oriented building blocks such as setter/getter functions, constructors, destructors, virtual methods, and exception handling.

Frequently Asked Questions

What is this course about?

This course teaches what it means for code to be object-oriented, as opposed to logic-oriented. Using C++, a language that works by accessing stored data within objects, it covers the difference between classes and objects, how to create and deconstruct objects, how inheritance works among objects, and how to reference objects within your code.

What topics and lessons does the course cover?

The lessons cover Class and Object, Setter/Getter Function, Constructor Functions, Destructor in C++, Inheritance, Virtual Method, Pass by Reference, and Exception Handling.

What skills will I gain from this course?

You will understand object referencing in code, create new objects of code, and build upon branching your code. The course develops skills in C++ fundamentals and concepts and object-oriented programming (OOP).

What will I be able to do after completing the course?

You will be able to use classes and objects, construct and deconstruct objects within code, use inheritance with objects, and use referencing in code.