O'Reilly logo

Microsoft® Visual C#® 2012 Step by Step by John Sharp

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 7. Creating and Managing Classes and Objects

After completing this chapter, you will be able to

  • Define a class containing a related set of methods and data items.

  • Control the accessibility of members by using the public and private keywords.

  • Create objects by using the new keyword to invoke a constructor.

  • Write and call your own constructors.

  • Create methods and data that can be shared by all instances of the same class by using the static keyword.

  • Explain how to create anonymous classes.

The Microsoft Windows Runtime for Windows 8 together with the Microsoft .NET Framework available on Windows 7 and Windows 8 contain thousands of classes, and you have used a number of them already, including Console and Exception. Classes provide a convenient ...

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