O'Reilly logo

C# Primer Plus by Klaus Michelsen

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

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 ...

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