Summary


In this chapter, I have completed the discussion of how to define basic classes. There's plenty still to cover, but the techniques covered so far enable you to create quite complicated applications already.

You looked at how to define fields, methods, and properties, covering the various access levels and modifier keywords as you went along. To cap this off, you looked at the VS tools that can be used to get the outline of a class together in double-quick time.

Once you covered these basic subjects, you looked in greater detail at inheritance behavior, by seeing how you can hide unwanted inherited members with the new keyword and extend base class members rather than replacing their implementation, using the base keyword. You also looked at nested class definitions.

After this, you took a more detailed look at interface definition and implementation, including the concepts of explicit and implicit implementation.

Finally, you developed and used a simple class library representing a deck of playing cards, making use of the handy class diagram tool to make things easier. You'll make further use of this library in later chapters.

In this chapter, you:

  • Learned how to define fields, methods, and properties.

  • Discovered the tools available in VS for creating the outline of a class.

  • Learned more about inheritance behavior.

  • Learned about interface definition and implementation.

  • Created and deployed a simple class library.

In the next chapter, you look at collections, which are a type of class that you will use time and time again in your development.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net