Classes and Design

Encapsulation

How classes hide their data behind a public interface, with examples.

How to Write "I Love You" in C++

Learn how to write I love you in C++ with std::cout, escape quotes, and keep a message private in a small class that shows encapsulation in action.

2 min read

Which Is Harder, C or C++?

Most learners find C++ harder than C because it adds classes, templates and a large standard library. Here is why, and how to choose which to learn first.

2 min read

Related topics

More in classes and design