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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.