This page is optimized for mobile devices, if you would prefer the desktop version just
click here
Learn about encapsulation, abstraction, abstract data types, information hiding, class member access control, instance variables, local variables, class variables, reference variables, primitive variables, how C# identifies properties, and how to set and get properties in C#. Also learn about public accessor methods, public manipulator methods, data validation by property setters and public access methods, and a few other things along the way.
Revised: Thu May 05 12:44:19 CDT 2016
This page is part of a Book titled XNA Game Studio .
Table of Contents
- Table of Contents
- Preface
-
General
background information
- Abstraction
- Define data representation and behavior in a class
- Encapsulation
- Preview
-
Discussion and sample code
- Will explain in fragments
- Two classes
- Will switch between classes
- The declarations
- Beginning of the class named Props01
- Beginning of the class named TargetClass
- Different kinds of variables
- Call the object's public accessor methods
- Would be a property in Java
- The definition of setColor and getColor in TargetClass
- Call manipulator method and display results
- Set and get the property with an invalid value
- Pause until the user presses any key
- The end of the program
- Run the program
- Run my program
- Summary
- Miscellaneous
- Complete program listing
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.
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.