Data Structures and Algorithms
Big O, arrays, hash tables, trees, graphs, sorting and dynamic programming with hands-on code
Technology & ProgrammingClasses, encapsulation, inheritance, polymorphism and SOLID design
Finish the 12 lessons (about 2 h 40 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.
Most programs start small and then grow for years. Object-oriented programming (OOP) is the most widely used way of keeping that growth under control: you model a problem as objects that keep their own data and enforce their own rules, so one change doesn't ripple through the whole codebase.
This free course teaches OOP as a way of thinking, not just a set of keywords. You'll start with why objects exist at all, then write classes, constructors and methods, and learn exactly how this works and where it goes wrong. Next you'll protect object data with private fields and invariants, and design cohesive classes and immutable value objects.
The middle of the course covers the ideas people mean when they talk about OOP: inheritance with extends and super, polymorphism and dynamic dispatch, abstract classes, interfaces and the Liskov substitution principle. Then you'll learn why experienced designers often prefer composition over inheritance, and how the five SOLID principles keep code open to change. The final module covers the classic design patterns (strategy, factory, observer, decorator, adapter and singleton), turning requirements into a class model, reading UML class diagrams and designing objects that are easy to unit test.
Examples and coding challenges use JavaScript, which you can run right in your browser, with Python shown where the syntax differs. The concepts transfer directly to Java, C#, C++, Kotlin, Swift and TypeScript.
The course is for students and self-taught programmers who already know variables, functions, loops and arrays in at least one language and want to write larger programs well. Every lesson mixes short explanations with code challenges, bug hunts and design scenarios, and you can earn a free certificate of completion by passing the final exam.
Model problems as objects with state and behavior, write classes and constructors, and master how this and static members work.
Protect object data with private fields and invariants, then design cohesive classes, value objects and clean public interfaces.
Extend classes with inheritance, replace conditionals with polymorphism, and define reliable contracts with abstract classes and interfaces.
Prefer composition over deep hierarchies and apply the SOLID principles to keep classes easy to extend, test and change.
Apply classic design patterns, model a system from requirements, read UML class diagrams and design objects that are easy to test.
20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.
In OOP, a method is simply a function that is attached to an object and can work with that object's data.
True or false?
Answer: True
That is exactly what a method is. Inside it, a reference such as this (JavaScript, Java, C#) or self (Python) gives access to the object the method was called on, which is how one method can serve thousands of different objects.
Encapsulation (hiding data behind methods), abstraction (working with what an object does rather than how), inheritance (building a class on top of another) and polymorphism (different objects responding to the same call in their own way). Many designers would add composition as an equally important tool.
Code examples and challenges use JavaScript, because it runs in any browser with no setup. Python versions are shown where the syntax differs, and the concepts apply directly to Java, C#, C++, TypeScript, Kotlin and Swift.
You should know basic programming in some language: variables, functions, if statements, loops and arrays. If you have used Python or Java, you will be able to follow the JavaScript examples, since the course explains class syntax as it goes.
No, but it is the most overused OOP feature. Inheritance fits genuine, stable is-a relationships that pass the Liskov substitution test. For reusing code or combining features, composition is usually more flexible and less fragile.
Yes. Languages and frameworks change, but the problems they address, code that is hard to change, test or extend, do not. Use them as guidelines for judgment rather than rules to apply everywhere, especially in small programs.
Most modern codebases mix both. Objects work well for things with identity and rules; pure functions work well for calculations and data transformations. Many ideas in this course, such as immutability and small focused units, are shared by both styles.
No. It is a certificate of completion showing that you finished the lessons and passed the exam. It is a good way to show initiative on a profile, but it is not an academic credential.
Big O, arrays, hash tables, trees, graphs, sorting and dynamic programming with hands-on code
Technology & ProgrammingBinary, hardware, algorithms, code and the internet: the ideas behind every computer
Technology & ProgrammingProcesses, threads, scheduling, memory, file systems and protection explained
Technology & ProgrammingFrom bits and logic gates to processors, memory and the operating system
Technology & ProgrammingData, algorithms, the internet and the impact of computing, the big ideas of CS
Technology & ProgrammingCount, convert and calculate in binary, hexadecimal and octal like a computer
Technology & Programming