Game Development Reference
In-Depth Information
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 to fully utilize encapsulation, minimize coupling, and promote cohesion.
This part of the topic introduces you to the features of C++ that enable you to use objects in your
programs as well as lay the foundations for you to be able to design programs following best
practices.
 
Search WWH ::




Custom Search