TalentJR

🧩 Free · Class 11 (11th Std) · no sign-in needed

C++ Programming Tutorial for Beginners – Class 11 (11th Std)

C++ powers games, browsers and fast apps. Learn classes, inheritance, the STL and templates by building real programs — edit every example and press ▶ Run: a real C++ compiler runs right on this page, free.

  • 📚 18 lessons
  • 🧩 54 challenges
  • ✨ 18 interactive
  • ▶ real C++ in the browser
Start Lesson 1 — free →
#include <iostream>
#include <vector>
using namespace std;

int main() {
    vector<int> runs = {4, 6, 0, 6, 1};
    int total = 0;
    for (int r : runs) total += r;
    cout << "Total: " << total << " runs\n";
}
Output
Total: 17 runs

🗺️ Your learning map

A C++ programming tutorial for beginners in Class 11 (11th Std), ages 16–17. “C++ OOP - Advanced Programming” is a free course of 18 short lessons on C++ and object-oriented programming, with C++ basic programs as worked examples. Every lesson has Easy, Medium and Hard practice challenges. Read the lessons without signing in.

Part 1 · Objects and the STL

  1. 1Lesson 1: C++ Basics – cout, cin, Variables, Loops, Functions and References✨ Interactive: animation · ▶ Run · quiz · challenge · 35 minStart →
  2. 2Lesson 2: Classes and Objects in C++ – Bundle Data and Functions Together✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  3. 3Lesson 3: Inheritance in C++ – Reuse a Class to Build a New One✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  4. 4Lesson 4: Polymorphism in C++ – Virtual Functions and Overriding✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  5. 5Lesson 5: STL in C++ – vector, map, set and Algorithms✨ Interactive: animation · ▶ Run · quiz · challenge · 40 min→
  6. 6Lesson 6: C++ Projects – Build a Multi-Class Kirana Shop Billing App✨ Interactive: animation · ▶ Run · quiz · challenge · 45 min→

Part 2 · Deeper C++

  1. 7Lesson 7: Constructors and Destructors in C++ – Object Start-up and Clean-up✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  2. 8Lesson 8: Operator Overloading in C++ – Make Your Classes Work with +, == and <<✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  3. 9Lesson 9: Templates in C++ – Write Code Once for Any Type✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  4. 10Lesson 10: Exception Handling in C++ – try, catch, throw and std::optional✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  5. 11Lesson 11: File I/O in C++ – Read and Write Files with fstream✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  6. 12Lesson 12: Vectors & Iterators in C++ – Grow, Search, Insert and Erase✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→

Part 3 · Designing bigger programs

  1. 13Lesson 13: Abstract Classes & Interfaces in C++ – Pure Virtual Functions✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  2. 14Lesson 14: Smart Pointers in C++ – unique_ptr, shared_ptr and weak_ptr✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  3. 15Lesson 15: Multiple Inheritance in C++ – Two Parents, Ambiguity and the Diamond Problem✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  4. 16Lesson 16: Design Patterns Basics in C++ – Singleton, Factory, Observer and Strategy✨ Interactive: animation · ▶ Run · quiz · challenge · 40 min→
  5. 17Lesson 17: Intro to Multithreading in C++ – std::thread, join and mutex✨ Interactive: animation · ▶ Run · quiz · challenge · 35 min→
  6. 18Lesson 18: Capstone: Library Management System in C++✨ Interactive: animation · ▶ Run · quiz · challenge · 50 min→

🛠️ What you will build

Finished the course? Get your certificate

Take the final test: 15 questions from the whole course. Get 12 right and you earn a TalentJR course certificate with your name.

Take the final test →

Questions parents and students ask

Is this C++ course really free?

Yes. All 18 lessons, the ▶ Run boxes, the quizzes and the challenges are free, and you can read them without signing in. Sign in only if you want to save your progress and earn a certificate.

Do I need to install a C++ compiler?

No. Each lesson has boxes where you edit C++ code and press ▶ Run: a real C++ compiler (clang) runs inside your browser. The first run downloads it once (about 37 MB for C++), so a computer or a good connection helps.

Can every C++ example run in the browser?

Almost all. Exceptions (try/catch) and threads do not work in the browser compiler yet, so those two lessons show read-only examples with the real output from g++ on our computer — and still have runnable examples and challenges.

Should I learn C before C++?

It helps but is not required. The Class 10 C course teaches pointers and memory; this course explains what it needs again, then adds classes, the STL and templates.

What can I make after this C++ course?

Console programs with many classes, like the library management system in the capstone — and a strong base for competitive programming, game engines or Class 12 Computer Science projects.