O'Reilly logo

C++ 2013 for C# Developers,Second Edition by Dean C. Wills

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

CHAPTER 8

image

Polymorphism and Protection

We have met the enemy and he is us.

—Walt Kelly (Pogo)

Both C# and C++ are object-oriented languages, which means that both languages support the creation of objects that encapsulate not only data but associated methods or operations on that data. Both languages also provide mechanisms to relate different objects to one other, ranging from operator overloading to inheritance, interfaces, and parametric polymorphism. Both languages provide mechanisms to restrict and control the access to data, ranging from limitations on accessibility and visibility to canning and filtering data using properties.

In this ...

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