Summary

In this chapter, you have learned about abstraction and encapsulation, two important object-oriented concepts. You have also been presented with a simple C# program and learned about its basic C# elements and general underlying concepts.

The following are the important points covered in this chapter:

Abstraction and encapsulation are important concepts in object-oriented programming.

Abstraction allows programmers, through simplification, to cope with complexity. Only attributes relevant to the problem at hand should be included in an abstraction.

Encapsulation packs data and their associated actions into the class entity. Only relevant parts of an object are exposed to the outside world. This keeps the data inside an object non-corrupted ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.