# 0.8 Xna0114-runtime polymorphism through class inheritance

 Page 1 / 7
With runtime polymorphism, the selection of a method for execution is based on the actual type of the object whose reference is stored in a reference variable, and not on the type of the reference variable on which the method is called.

Revised: Fri May 06 15:50:20 CDT 2016

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

## 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.

Object-oriented programs exhibit three main characteristics:

• Encapsulation
• Inheritance
• Polymorphism

I have explained encapsulation, inheritance, and compile-time polymorphism in earlier modules. I will continue my explanation of polymorphism in this modulewith an explanation of runtime polymorphism using method overriding and class inheritance. I will defer an explanation of polymorphism using interfaceinheritance until a future module.

## 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 Listings while you are reading about them.

## What is polymorphism?

As you learned in an earlier module, the meaning of the word polymorphism is something like one name, many forms .

## How does C# implement polymorphism?

Also as you learned in an earlier module, polymorphism manifests itself in C# in the form of multiple methods having the same name.

a perfect square v²+2v+_
kkk nice
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
y=10×
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
rolling four fair dice and getting an even number an all four dice
Kristine 2*2*2=8
Differences Between Laspeyres and Paasche Indices
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
is it 3×y ?
J, combine like terms 7x-4y
im not good at math so would this help me
how did I we'll learn this
f(x)= 2|x+5| find f(-6)
f(n)= 2n + 1
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
how did you get the value of 2000N.What calculations are needed to arrive at it
Got questions? Join the online conversation and get instant answers!