September 2014
Intermediate to advanced
396 pages
7h 58m
English
CHAPTER 8
![]()
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 ...
Read now
Unlock full access