Example: stock market

Beginning C# Object-Oriented Programming

Your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. at a GlanceAbout the Author xviiAbout the Technical Reviewer xixAcknowledgments xxiIntroduction xxiiiChapter 1: Overview of Object-Oriented Programming 1 Chapter 2.

design, the Unified Modeling Language (UML), object-oriented programming, C#, and the .NET Framework. Because this is an introductory book, it’s meant to be a starting point for your study of the topics it presents. As such, this book is not designed to make you an expert in object-oriented programming and UML; nor is it an

Tags:

  Language, Modeling, Unified, Unified modeling language

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Beginning C# Object-Oriented Programming

1 Your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. at a GlanceAbout the Author xviiAbout the Technical Reviewer xixAcknowledgments xxiIntroduction xxiiiChapter 1: Overview of Object-Oriented Programming 1 Chapter 2.

2 Designing OOP Solutions: Identifying the Class Structure 7 Chapter 3: Designing OOP Solutions: modeling the Object Interaction 25 Chapter 4: Designing OOP Solutions: A Case Study 43 Chapter 5: Introducing the NET Framework and Visual Studio 59 Chapter 6: Creating Classes 83 Chapter 7: Creating Class Hierarchies 97 Chapter 8: Implementing Object Collaboration 119 Chapter 9: Working with Collections 143 Chapter 10: Implementing the Data Access Layer 161 Chapter 11: Developing WPF Applications 193 Chapter 12.

3 Developing Web Applications 221 Chapter 13: Developing Windows Store Applications 251 Chapter 14: Developing and Consuming Web Services 273 Chapter 15: Developing the Office Supply Ordering Application 295 Chapter 16: Wrapping Up Contents at a GlanCeviAppendix A: Fundamental Programming Concepts 325 Appendix B: Exception Handling in C# 341 Appendix C: Installing the Required Software 347 Index has been my experience as a.

4 NET trainer and lead programmer that most people do not have trouble picking up the syntax of the C# language . What perplexes and frustrates many people are the higher-level concepts of Object-Oriented Programming methodology and design. To compound the problem, most introductory Programming books and training classes skim over these concepts or, worse, don t cover them at all. It is my hope that this book fills this void. My goals in writing this book are twofold. My first goal is to provide you with the information you need to understand the fundamentals of Programming in C#. More importantly, my second goal is to present you with the information required to master the higher-level concepts of Object-Oriented Programming methodology and book provides the knowledge you need to architect an Object-Oriented Programming solution aimed at solving a business problem.

5 As you work your way through the book, you will learn first how to analyze the business requirements of an application. Next, you will model the objects and relationships involved in the solution design. Finally, you will implement the solution using C#. Along the way, you will learn about the fundamentals of software design, the unified modeling language (UML), Object-Oriented Programming , C#, and the .NET this is an introductory book, it s meant to be a starting point for your study of the topics it presents. As such, this book is not designed to make you an expert in Object-Oriented Programming and UML; nor is it an exhaustive discussion of C# and the.

6 NET Framework; nor is it an in-depth study of Visual Studio. It takes considerable time and effort to become proficient in any one of these areas. It is my hope that by reading this book, your first experiences in Object-Oriented Programming will be enjoyable and comprehensible and that these experiences will instill a desire for further AudienceThe target audience for this book is the Beginning C# programmer who wants to gain a foundation in Object-Oriented Programming along with C# language basics. Programmers transitioning from a procedure-oriented Programming model to an Object-Oriented model will also benefit from this book. In addition, there are many Visual Basic (VB) programmers who want to transition to C#.

7 Before transitioning to C#, it is imperative that you understand the fundamentals of Object-Oriented the experience level of a beginner can vary immensely, I have included a primer in Appendix A that discusses some basic Programming concepts and how they are implemented in C#. I would suggest you review these concepts if you are new to and Software RequirementsOne of the most important aspects of learning is doing. You can t learn to ride a bike without jumping on a bike, and you can t learn to program without cranking out code. Any successful training program needs to include both a theory component and a hands-on have included both components throughout this book.

8 It is my hope that you will take seriously the activities I have added to each chapter and work through them thoroughly even repeatedly. Contrary to some students perception that these activities are exercises in typing, the activities are where you get a chance to make the theory IntroduCtIonxxivconcrete and where true simulation of the concepts occurs. I also encourage you to play as you work through an activity. Don t be afraid to alter some of the code just to see what happens. Some of the best learning experiences occur when students color outside the lines. The UML modeling activities in early chapters are designed for someone using UMLet.

9 I chose this program because it s a good diagramming tool to learn with. It lets you create UML diagrams without adding a lot of advanced features associated with the high-end CASE tools. UMLet is a free open-source tool and can be downloaded from You can also use another tool such as Visio to complete the activities. However, you don t need a tool to complete these activities; paper and pencil will work just fine. Once you begin coding, you will need Visual Studio 2012 with C# installed. I encourage you to install the help files and make ample use of them while completing the activities. Chapter 13 deals with creating Windows Store Apps and requires Visual Studio installed on the Windows 8 operating system.

10 Later chapters require Microsoft SQL Server 2008 or higher with the Pubs and Northwind databases installed. Appendix C includes instructions on downloading and installing the sample databases. You can find free Express and trial editions of both Visual Studio and SQL Server along with trial editions of Windows 8 at 1 Overview of Object-Oriented ProgrammingTo set the stage for your study of Object-Oriented Programming (OOP) and C#, this chapter will look briefly at the history of Object-Oriented Programming and the characteristics of an Object-Oriented Programming language . You will look at why Object-Oriented Programming has become so important in the development of industrial-strength distributed-software systems.


Related search queries