O'Reilly logo

C#: A Beginner's Tutorial by Jayden Ky

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 4

Objects and Classes

This chapter introduces you to objects and classes. If you are new to OOP, you may want to read this chapter carefully because a good understanding of OOP is key to writing quality programs.

This chapter starts by explaining what an object is and what constitutes a class. It then teaches you how to create objects in C# using the new keyword, how objects are stored in memory, how classes can be organized into namespaces, how to use access control to achieve encapsulation, and how C# manages unused objects. In addition, method overloading and static class members are explained.

What Is a C# Object?

When developing an application in an OOP language, you create a model that resembles a real-life situation to solve your ...

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