Skip to Content
Essential C# 3.0: For .NET Framework 3.5
book

Essential C# 3.0: For .NET Framework 3.5

by Mark Michaelis
August 2008
Intermediate to advanced content levelIntermediate to advanced
880 pages
18h 35m
English
Addison-Wesley Professional
Content preview from Essential C# 3.0: For .NET Framework 3.5

9. Well-Formed Types

THE PREVIOUS CHAPTERS covered most of the constructs for defining classes and structs. However, several details remain concerning rounding out the type definition with fit-and-finish-type functionality. This chapter introduces how to put the final touches on a type declaration.

image

Overriding object Members

Chapter 6 discussed how all types derive from object. In addition, it reviewed each method available on object and discussed how some of them are virtual. This section discusses the details concerning overloading the virtual methods.

Overriding ToString()

By default, calling ToString() on any object will return the fully qualified ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet

Publisher Resources

ISBN: 9780321580559Purchase book