O'Reilly logo

Beginning Android C++ Game Development by Bruce Sutherland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix     C

C++ Programming

C++ is a programming language which provides an almost infinite number of options for solving problems. This book uses some techniques which may not be familiar to beginner programmers. This appendix aims to cover some of the more advanced language features used.

The Friend Keyword

C++ classes can contain fields and methods which are of different scopes. These available scopes are public, private, and protected.

  • Public scope ensures that all fields and methods can be accessed from outside the class itself.
  • Private fields and methods can be accessed only from methods which are also declared in the same class.
  • Protected fields and methods are similar to private but can also be accessed by derived classes.

It is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required