Part 2
Object-Oriented Programming
Procedural programming can allow you to write full programs without any more features being required. However, C++ was built using C as its foundation, which means that you can write programs in different ways.
Object-oriented programming introduces the concept of programming with objects. C++ allows you to create blueprints for your objects in the form of classes. Classes allow you to express the design of your programs in terms of collections of data contained within classes along with the operations that can be applied to that data. Years of research has led to best practice being applied in object-oriented programming, including the correct use of features such as polymorphism and designing programs ...
Get Learn C++ for Game Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.