O'Reilly logo

Microsoft Visual C# 2013 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 8. Understanding values and references

After completing this chapter, you will be able to:

Chapter 7 demonstrates how to declare your own classes and how to create objects by using the new keyword. That chapter also shows you how to initialize an object by using a constructor. In this chapter, you will learn about how the characteristics of the primitive types—such as int, double, and char—differ from the characteristics of class types.

Copying value type variables and classes

Most of the primitive types built into C#, such as int, float, double, and char (but not string, for reasons that will be covered shortly) are collectively called value types. These types ...

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