OOP using C++
Systems power meets elegant object-oriented design.
Introduction to C++
C grows up: meet cout, classes and the STL toolbox, and watch hello.cpp travel from source text to a running program.
Operators
Arithmetic, comparison and logic: see why 17 / 5 is 3 in C++, what % keeps, and how && decides a condition.
Control Statements
Give your code a brain: if, else and switch pick paths — watch marks become grades and a menu choose a drink.
Looping Statements
Stop copy-pasting work: for, while and do-while repeat for you — follow one animated iteration at a time.
Functions and Modular Programming
Package work into reusable blocks: parameters in, return values out — and one name wearing many overloads.
Recursion
A function that calls itself: watch factorial stack its frames, hit the base case and unwind the answer.
1D Arrays
One name, many values: reserve a row of score cells, index them from 0 and let a for loop walk and sum them.
2D Arrays
Rows times columns: address a grid with [row][col], fill it with nested loops and see row-major memory in 3D.
Strings
std::string is text with superpowers: glue words with +, count with length() and walk characters by index.
Pattern Manipulation
Nested loops are printing presses: build squares, triangles and number pyramids one row and column at a time.
Pointers and Dynamic Memory
Meet the heap: new hands you memory by address, delete takes it back, and every hop is visible in 3D.
Introduction to Object-Oriented Programming
Classes are blueprints and objects are the houses — build your first Dog, then make it speak for itself.
Constructors and Destructors
Objects get born and die: constructors set them up, destructors clean up — automatically, in reverse order.
Inheritance
class Dog : public Animal — children inherit everything the parent has, then add their own twist on top.
Polymorphism
One call, many behaviours: Animal* pointers, the virtual keyword and the famous zoo loop, animated live.
Templates and STL
Write once, work for every type — templates stamp out versions while the STL ships ready-made containers.
Exception Handling and Multithreading
When things go wrong, throw and catch gracefully — then peek at std::thread doing two jobs at once.
Abstract Classes and Virtual Functions
Shapes that refuse to be built — pure virtual methods force every child class to earn its concrete form.
Operator Overloading
Teach + and << new tricks — overloaded operators make your own types read like the built-in ones.
File Handling
Programs that remember — ofstream writes, ifstream reads, and the full file round trip is animated for you.