This page is optimized for mobile devices, if you would prefer the desktop version just click here

0.3 Xna0104-what is oop and why should you care?

Learn about object-oriented programming in general. Also learn about the structure and syntax of an object-oriented C# program by taking a simple program apart and examining the elements of the program.

Revised: Wed May 04 17:44:09 CDT 2016

This page is part of a Book titled XNA Game Studio .

Table of Contents

Preface

This module is one in a collection of modules designed primarily for teaching GAME 1343 Game and Simulation Programming I at Austin Community College in Austin, TX. These modules are intended tosupplement and not to replace the textbook.

An earlier module titled Getting Started provided information on how to get started programming with Microsoft's XNA Game Studio.

Viewing tip

I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the Figuresand Listings while you are reading about them.

Figures

Listings

What is OOP?

What is object-oriented programming (OOP)?

If you Google this question, you will get hundreds of answers. Here is one of those answers.

According to Wikipedia,

"Object-oriented programming (OOP) is a programming paradigm that uses "objects" - data structures consisting of data fields andmethods together with their interactions - to design applications and computer programs. Programming techniques may include features such as informationhiding, data abstraction, encapsulation, modularity, polymorphism, and inheritance."

My answer

Here is my answer along with an anecdotal description. Unlike earlier programming styles, object-oriented programming is a programming style thatmimics the way most people think and work.

An OOP solution to a problem should resemble the problem, and observers of the solution should be able to recognize the problem without necessarily knowingabout it in advance.

<< Chapter < Page Page > Chapter >>

Read also:

OpenStax, Xna game studio. OpenStax CNX. Feb 28, 2014 Download for free at https://legacy.cnx.org/content/col11634/1.6
Google Play and the Google Play logo are trademarks of Google Inc.
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use and Privacy Policy.