O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

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

Summary

This chapter explained the basics of classes and OOP. It listed some of the benefits of OOP, such as encapsulation, code reuse, and polymorphism, and described the members of classes, properties, methods, and events. The chapter covered how inheritance allows a child class to inherit members from a parent class. It also explained how a child class can modify inherited members by overriding or shadowing them.

Although most object-oriented languages, including C# and Visual Basic, do not allow multiple inheritance, this chapter showed how you can gain many of the same benefits by using interfaces and composition. Finally, this chapter covered constructors that execute when an object is created and destructors that execute when an object is ...

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