Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

C++ Object Oriented Programming Crash Course

Caleb Curry via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn the fundamentals of object-oriented programming in C++ through this comprehensive crash course tutorial that covers essential OOP concepts in just over 90 minutes. Begin by understanding the differences between procedural and object-oriented approaches, then dive into creating classes and objects, exploring the distinction between classes and structs, and working with vectors containing custom types. Master method implementation, naming conventions, parameter passing, and return values while learning proper syntax for method calls within loops. Explore constructor functionality including aggregate initialization syntax, constructor initializers, and the removal of default constructors, along with understanding the 'this' keyword and its applications. Delve into core OOP principles including encapsulation and abstraction, then advance to static methods and nested class structures. Compare composition versus inheritance approaches and understand how code organization affects compilation. Implement getter and setter methods while learning about reference returns and const references for memory-efficient programming. Progress to inheritance concepts, access modifiers including protected members, and polymorphism implementation using virtual functions and override keywords. The tutorial provides hands-on coding examples and practical applications throughout, making complex OOP concepts accessible for beginners while building a solid foundation for advanced C++ programming.

Syllabus

00:00:00 - Intro
00:00:40 - Getting Started
00:04:33 - How it is done without OOP
00:08:47 - Create a Class
00:10:51 - Class vs object
00:13:45 - Using vectors with Custom Type
00:16:47 - range based for loop
00:18:22 - What are methods
00:19:03 - struct vs class
00:21:18 - Methods
00:24:34 - Important Naming Conventions
00:25:37 - arguments and return values
00:30:55 - Reviewing method call syntax
00:32:02 - method calls in loop
00:35:38 - Constructors
00:37:39 - Aggregate Initialization Syntax
00:41:01 - Why we use constructors
00:42:17 - Removing the default constructor
00:43:12 - understanding the this keyword
00:45:24 - Constructor Initializer
00:46:22 - Benefits of Constructors
00:48:57 - Encapsulation
00:52:32 - Understanding Abstractions
00:56:08 - static Methods
01:00:48 - Nested Classes
01:01:47 - Composition vs Inheritance
01:05:33 - Code Order Matters!
01:06:18 - Implement Getter and Setter
01:07:42 - return by Reference
01:10:11 - const References
01:17:05 - Inheritance
01:22:00 - protected
01:25:00 - Polymorphism
01:27:48 - virtual and override
01:29:15 - What's Next?

Taught by

Caleb Curry

Reviews

Start your review of C++ Object Oriented Programming Crash Course

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.