
Lecture Description
Inheritance is one of the reasons why object-oriented programming is so great, allowing you to create objects based on existing objects, but adding new functionality. Beginners often ask if programmers really use this stuff, and the answer is an emphatic yes --- although not every program requires inheritance. But for some types of programs, especially ones involving an interface or games, inheritance is extremely useful and leads to elegant, maintainable code.
Course Index
- Introduction to C++ Programming
- Installation
- Hello World
- Outputting Text
- Variables
- Strings
- User Input
- Binary Numbers and Memory
- Integer Variable Types
- Floating Point Variable Types
- Char and Bool
- The "If" Statement
- If-Else
- Choosing Between Alternatives: If-ElseIf-Else
- - Complex Conditions
- "While" Loops
- The Do-While Loops
- "For" Loops
- Break and Continue
- Arrays
- Multidimensional Arrays
- Sizeof and Arrays
- Sizeof Multidimensional Arrays
- Switch: Choosing Between Alternatives
- Functions: Using Subroutines in C++
- Return Values: Getting Data From Subroutines
- - Function Parameters: Passing Data to Subroutines
- Headers and Prototypes
- Classes: The Foundation of Object-Oriented (OO) Programming
- Data Members, a.k.a. Instance Variables
- Constructors and Destructors
- Getters and Setters
- String Streams; Adding Number to Strings
- Overloading Constructors
- The "this" Keyword; A First Taste of Pointers
- Constructor Initialization Lists
- Pointers; Where C++ Starts to Get Tricky
- Arithmetic Operators
- Pointers and Arrays
- Pointer Arithmetic; Adding, Subtracting and Comparing Pointers
- Char Arrays: Primitive Strings in C++
- Reversing a String (Interview Question!)
- References; Nicer than Pointers!
- Const; a Vital Tool for Reducing Bugs
- Copy Constructors; Creating Copies of Objects
- The New Operator; Allocating Memory in C++
- Returning Objects from Functions
- Allocating Memory
- Arrays and Functions
- Namespaces; Organise Your Classes
- Inheritance
- Encapsulation
- Constructor Inheritance
- Twos Complement
- Static Variables
- Particle Fire Explosion
- Using C++ Libraries
- Aquiring Simple Direct Media Layer
- A Basic SDL Program
- Creating an SDL Window
- Textures, Renderers and Buffers
- Setting Pixel Colors
- Creating the Screen Class
- Bit Shifting and Colors
- Adding a Set Pixel Method
- Animating Colors
- Creating Particles (Starfields!)
- Animating Particles
- Creating an Explosion
- Ensuring Constant Speed
- Biwise "And"
- Implementing Box Blur
- Realistic Particle Motion
- Languages Overview
- What Next
- Object Oriented Design Considerations
- Understanding Postfix and Prefix
- Static Creating Libraries
Course Description
Your instructor John Purcell offers a friendly introduction to programming with the C++ language.
Comments
There are no comments.
Be the first to post one.
Posting Comment...