Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Learning the Basics of Object-Oriented Programming

Learning the Basics of Object-Oriented Programming

At this point, you should be comfortable with writing basic C# code, but your coding style+ would solve problems directly without considering reusability or other more advanced concepts. You could code yourself out of a wet paper bag, but once you were out of the bag, you would have no idea what to do next. (In case you're interested, the phrase, "You couldn't do [fill in topic] out of a wet paper bag" implies that your skills in a certain area are so weak that a wet paper bag is more overpowering. The reference to wet paper bag comes from the fact that wet paper bags have no holding power and will tear at the slightest nudging.)

This chapter focuses on reusing base functionality, where two classes share methods and properties in common to solve a particular problem. To demonstrate the concepts, we will create a simple currency exchange application. This application will use object-oriented programming, a powerful set of techniques common in modern programming languages such as C#.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial