<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deswartz</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deswartz"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Deswartz"/>
	<updated>2026-06-05T21:54:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11387</id>
		<title>CSC 216/s08/make plans</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11387"/>
		<updated>2008-04-21T16:28:30Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==Understanding Traversal Types on Binary Trees==&lt;br /&gt;
&lt;br /&gt;
Binary Trees are a new concept and it is important to have a solid understanding of binary trees and how to traverse them before moving onto the concept of binary search trees.&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
You are given a stack of circles having either a letter or a number in the center of each.  You have no knowledge of how to order them.  &lt;br /&gt;
The professor will give you a list of numbers and a list of letters.  Depending upon which stack type you are given, you must order them properly into a binary tree.  The professor will tell you the traversal type.&lt;br /&gt;
You have 2 minutes to do so.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
There will be 4 groups of 3 at the front of the room.  The activity is timed.&lt;br /&gt;
&lt;br /&gt;
You will be given a stack of circles with velcro backing.  &lt;br /&gt;
Each group would also be given a blank board that the velcro would stick to.  The idea is that the rest of the class can see how the student is thinking and what the guess is.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;ul&amp;gt;One stack will have a single letter on each circle.  The letter stacks will be given to two of the four groups.&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;One stack will have a single number on each circle.  The number stacks will be given to the remaining two groups.&amp;lt;/ul&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
You are pitted against a classmate on the opposing team who also must order the same type of list you are (letters or numbers).&lt;br /&gt;
The object is to order the given list of letters and numbers before the other team or before the 2 minutes have expired.&lt;br /&gt;
&lt;br /&gt;
One of the three ways of traversal, Preorder Traversal, Inorder Traversal, and Postorder Traversal, will be spoken aloud.&lt;br /&gt;
You must order the circles as quickly as possible based on the traversal type stated.  &lt;br /&gt;
The exercise is repeated for the other two members of the group.  The traversal type would change for each repetition.&lt;br /&gt;
Times for each of the 3 runs are tallied, and the winners get 1 bonus point on the next test.&lt;br /&gt;
&lt;br /&gt;
The point of this exercise is not to be told what each of the 3 traversal types are.  Mistakes and confusion are expected, and this is important because the exercise must be discussed with the class and each person can see if their guess on how to do it worked was correct or not.  The idea is that while it might be self-evident, you may still be wrong in the concept of each of the three traversal types.  By making egregious errors, and then discussing them afterwards, each of the types will be cemented into each of the student's mind.  &lt;br /&gt;
&lt;br /&gt;
The whole exercise should take no more than 15-20 minutes.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
For example, let's say you are given the tree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       5&lt;br /&gt;
      / \&lt;br /&gt;
     3   8&lt;br /&gt;
    /\   /\&lt;br /&gt;
    1 4 6 9&lt;br /&gt;
    \   \&lt;br /&gt;
     2   7&lt;br /&gt;
&lt;br /&gt;
The proper Preorder traversal would be: 5, 3, 1, 2, 4, 8, 6, 7, 9&lt;br /&gt;
&lt;br /&gt;
The proper Postorder traversal would be: 2, 1, 4, 3, 7, 6, 9, 8, 5&lt;br /&gt;
&lt;br /&gt;
The proper Inorder traversal would be: 1, 2, 3, 4, 5, 6, 7, 8, 9&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11386</id>
		<title>CSC 216/s08/make plans</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11386"/>
		<updated>2008-04-21T16:28:12Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Understanding Traversal Types on Binary Trees */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==Understanding Traversal Types on Binary Trees==&lt;br /&gt;
&lt;br /&gt;
Binary Trees are a new concept and it is important to have a solid understanding of binary trees and how to traverse them before moving onto the concept of binary search trees.&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
You are given a stack of circles having either a letter or a number in the center of each.  You have no knowledge of how to order them.  &lt;br /&gt;
The professor will give you a list of numbers and a list of letters.  Depending upon which stack type you are given, you must order them properly into a binary tree.  The professor will tell you the traversal type.&lt;br /&gt;
You have 2 minutes to do so.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
There will be 4 groups of 3 at the front of the room.  The activity is timed.&lt;br /&gt;
&lt;br /&gt;
You will be given a stack of circles with velcro backing.  &lt;br /&gt;
Each group would also be given a blank board that the velcro would stick to.  The idea is that the rest of the class can see how the student is thinking and what the guess is.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;ul&amp;gt;One stack will have a single letter on each circle.  The letter stacks will be given to two of the four groups.&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;One stack will have a single number on each circle.  The number stacks will be given to the remaining two groups.&amp;lt;/ul&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
You are pitted against a classmate on the opposing team who also must order the same type of list you are (letters or numbers).&lt;br /&gt;
The object is to order the given list of letters and numbers before the other team or before the 2 minutes have expired.&lt;br /&gt;
&lt;br /&gt;
One of the three ways of traversal, Preorder Traversal, Inorder Traversal, and Postorder Traversal, will be spoken aloud.&lt;br /&gt;
You must order the circles as quickly as possible based on the traversal type stated.  &lt;br /&gt;
The exercise is repeated for the other two members of the group.  The traversal type would change for each repetition.&lt;br /&gt;
Times for each of the 3 runs are tallied, and the winners get 1 bonus point on the next test.&lt;br /&gt;
&lt;br /&gt;
The point of this exercise is not to be told what each of the 3 traversal types are.  Mistakes and confusion are expected, and this is important because the exercise must be discussed with the class and each person can see if their guess on how to do it worked was correct or not.  The idea is that while it might be self-evident, you may still be wrong in the concept of each of the three traversal types.  By making egregious errors, and then discussing them afterwards, each of the types will be cemented into each of the student's mind.  &lt;br /&gt;
&lt;br /&gt;
The whole exercise should take no more than 15-20 minutes.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
For example, let's say you are given the tree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       5&lt;br /&gt;
      / \&lt;br /&gt;
     3   8&lt;br /&gt;
    /\   /\&lt;br /&gt;
    1 4 6 9&lt;br /&gt;
    \   \&lt;br /&gt;
     2   7&lt;br /&gt;
&lt;br /&gt;
The proper Preorder traversal would be: 5, 3, 1, 2, 4, 8, 6, 7, 9&lt;br /&gt;
The proper Postorder traversal would be: 2, 1, 4, 3, 7, 6, 9, 8, 5&lt;br /&gt;
The proper Inorder traversal would be: 1, 2, 3, 4, 5, 6, 7, 8, 9&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11199</id>
		<title>CSC 216/s08/make plans</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/make_plans&amp;diff=11199"/>
		<updated>2008-04-15T22:27:17Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Understanding Binary Trees */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==Understanding Binary Trees==&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Binary Trees are a new concept and it is important to have a solid understanding of binary trees before moving onto binary search trees.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem is that we are given a row of letters and have no knowledge of how to order those letters.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=11043</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=11043"/>
		<updated>2008-04-03T15:32:23Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Animal {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Parrot extends Bird {&lt;br /&gt;
        public void talk(String s) {&lt;br /&gt;
            System.out.println(s);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
An example of overloaded methods:&lt;br /&gt;
&lt;br /&gt;
    Parrot P = new Parrot();&lt;br /&gt;
    P.talk();&lt;br /&gt;
    P.talk(&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=11042</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=11042"/>
		<updated>2008-04-03T15:31:30Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Animal {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Parrot extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Rawk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk(String s) {&lt;br /&gt;
            System.out.println(s);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
An example of overloaded methods:&lt;br /&gt;
&lt;br /&gt;
    Parrot P = new Parrot();&lt;br /&gt;
    P.talk();&lt;br /&gt;
    P.talk(&amp;quot;Hello&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10928</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10928"/>
		<updated>2008-03-28T01:07:31Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* The script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Animal {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10927</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10927"/>
		<updated>2008-03-28T01:07:20Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Animal {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10926</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10926"/>
		<updated>2008-03-28T01:07:05Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Animal {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:52, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10925</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10925"/>
		<updated>2008-03-28T01:06:29Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* The problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:52, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10733</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10733"/>
		<updated>2008-03-26T21:52:26Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:43, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example:&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example:&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
A few, more advanced exercises would be added at the end, to show off the real power of polymorphism, such as:&lt;br /&gt;
&lt;br /&gt;
    Animal[] A = new Animal[3];&lt;br /&gt;
    A[0] = new Owl();&lt;br /&gt;
    A[1] = new Dog();&lt;br /&gt;
    A[2] = new Cow();&lt;br /&gt;
    for(Animal a: A)&lt;br /&gt;
        a.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:52, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10728</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10728"/>
		<updated>2008-03-26T21:43:31Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* The problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  In Java, polymorphism is using a superclass variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the superclass variable. &lt;br /&gt;
&lt;br /&gt;
The core concepts that this activity will teach are polymorphism and inheritance. It will explain why inheritance is an &amp;quot;is-a&amp;quot; relationship between two classes, and how variables of a given type can refer to objects of either their own class, or any subclass object. It will also touch on how methods are overridden by subclass methods when they are defined in both the superclass and subclass.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:43, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example,&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example,&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:31, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10727</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10727"/>
		<updated>2008-03-26T21:37:34Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* The script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&amp;lt;p&amp;gt;Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  Therefore, in Java, polymorphism is using a super class variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the super class variable.  It is useful because interfaces and inheritance can be used more abstractly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example,&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example,&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:31, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
The exercise will be introduced, and the props and instructions given to the class, which should take no more than 5 minutes. Each group will be given a stack of about 15 cards, and each group will have identical cards to each other group.&lt;br /&gt;
&lt;br /&gt;
The class will then be given 10-15 minutes to do about 20 exercises, based on the cards they are given.&lt;br /&gt;
&lt;br /&gt;
After the exercise is concluded, the class will review the correct answers and discuss them for 10-15 minutes. The class will go over how the Animal superclass is analogous to the Object superclass in Java. They will also talk about how methods of a subclass override methods of the superclass, in the same way that the methods of the animals do.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:37, 26 March 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10726</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10726"/>
		<updated>2008-03-26T21:31:28Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&amp;lt;p&amp;gt;Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  Therefore, in Java, polymorphism is using a super class variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the super class variable.  It is useful because interfaces and inheritance can be used more abstractly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example,&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Bird extends Animal {&lt;br /&gt;
        public void fly() {&lt;br /&gt;
            System.out.println(&amp;quot;Fly&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Chirp&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Owl extends Bird {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Whoo&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
An html page, powerpoint slide, or simply a part of the class notes will have a list of exercises for the groups to perform. For example,&lt;br /&gt;
&lt;br /&gt;
    Bird B = new Owl();&lt;br /&gt;
    B.talk();&lt;br /&gt;
&lt;br /&gt;
    Animal A = new Bird();&lt;br /&gt;
    A.talk();&lt;br /&gt;
&lt;br /&gt;
The students will then write down the answers to all of these exercises based upon what is on their cards.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 17:31, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A game loosely based on &amp;quot;Let's Make A Deal&amp;quot; would be played.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Teams would be formed (6-7 people or rows of students) would see a walk-through of 1 person going through the motions of choosing 1 of 4 doors and seeing what's behind each of the doors.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Behind each door would be an animal.  Each animal would have maybe 2 methods, such as talk() or daySleeper().&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;A follow up of the exercise would be that each team would be given a pile of scraps of paper with single lines of code (from the animal abstract interface example that was talked about) written on it.  The lines of code would need to be ordered correctly in the shortest amount of time.  Huge hints would have been given in the walk through, so students would have been needing to pay attention earlier.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  each team would attempt to write the code in order to make the walk-through work in a specified/requested fashion from the Powerpoint slide listed on the overhead.  For example:  Make an animal that is a carnivore, talk.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  Each group needs to write a main method for testing purposes to create a working action, specified by the overhead, from the code that was ordered together from the previous exercise.  Perhaps there is a time limit....&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;So there are 3 timed exercises with 3 prizes for the winning team:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;candy bars (miniatures)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;6-pack of soda (making it 1 can per person on the winning team)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;+1 point on next test or program&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10725</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10725"/>
		<updated>2008-03-26T21:23:25Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&amp;lt;p&amp;gt;Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  Therefore, in Java, polymorphism is using a super class variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the super class variable.  It is useful because interfaces and inheritance can be used more abstractly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example,&lt;br /&gt;
&lt;br /&gt;
    public class Dog extends Quadruped {&lt;br /&gt;
        public void talk() {&lt;br /&gt;
            System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public class Quadruped extends Animal {&lt;br /&gt;
        public void walk() {&lt;br /&gt;
            System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
more to come...&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 15:27, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A game loosely based on &amp;quot;Let's Make A Deal&amp;quot; would be played.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Teams would be formed (6-7 people or rows of students) would see a walk-through of 1 person going through the motions of choosing 1 of 4 doors and seeing what's behind each of the doors.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Behind each door would be an animal.  Each animal would have maybe 2 methods, such as talk() or daySleeper().&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;A follow up of the exercise would be that each team would be given a pile of scraps of paper with single lines of code (from the animal abstract interface example that was talked about) written on it.  The lines of code would need to be ordered correctly in the shortest amount of time.  Huge hints would have been given in the walk through, so students would have been needing to pay attention earlier.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  each team would attempt to write the code in order to make the walk-through work in a specified/requested fashion from the Powerpoint slide listed on the overhead.  For example:  Make an animal that is a carnivore, talk.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  Each group needs to write a main method for testing purposes to create a working action, specified by the overhead, from the code that was ordered together from the previous exercise.  Perhaps there is a time limit....&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;So there are 3 timed exercises with 3 prizes for the winning team:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;candy bars (miniatures)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;6-pack of soda (making it 1 can per person on the winning team)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;+1 point on next test or program&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10706</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10706"/>
		<updated>2008-03-26T19:27:50Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&amp;lt;p&amp;gt;Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  Therefore, in Java, polymorphism is using a super class variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the super class variable.  It is useful because interfaces and inheritance can be used more abstractly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
The class will be divided into small groups of 3-5 people. Each group will receive a number of Animal Cards (explained below) and a list of exercises will be shown on the board.&lt;br /&gt;
&lt;br /&gt;
An Action Card will be a small index card with a class definition and one or two methods. For example,&lt;br /&gt;
&lt;br /&gt;
public class Dog extends Quadruped {&lt;br /&gt;
    public void talk() {&lt;br /&gt;
        System.out.println(&amp;quot;Woof&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public class Quadruped extends Animal {&lt;br /&gt;
    public void walk() {&lt;br /&gt;
        System.out.println(&amp;quot;Walk&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
more to come...&lt;br /&gt;
&lt;br /&gt;
--[[User:Deswartz|Deswartz]] 15:27, 26 March 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A game loosely based on &amp;quot;Let's Make A Deal&amp;quot; would be played.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Teams would be formed (6-7 people or rows of students) would see a walk-through of 1 person going through the motions of choosing 1 of 4 doors and seeing what's behind each of the doors.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Behind each door would be an animal.  Each animal would have maybe 2 methods, such as talk() or daySleeper().&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;A follow up of the exercise would be that each team would be given a pile of scraps of paper with single lines of code (from the animal abstract interface example that was talked about) written on it.  The lines of code would need to be ordered correctly in the shortest amount of time.  Huge hints would have been given in the walk through, so students would have been needing to pay attention earlier.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  each team would attempt to write the code in order to make the walk-through work in a specified/requested fashion from the Powerpoint slide listed on the overhead.  For example:  Make an animal that is a carnivore, talk.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  Each group needs to write a main method for testing purposes to create a working action, specified by the overhead, from the code that was ordered together from the previous exercise.  Perhaps there is a time limit....&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;So there are 3 timed exercises with 3 prizes for the winning team:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;candy bars (miniatures)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;6-pack of soda (making it 1 can per person on the winning team)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;+1 point on next test or program&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10704</id>
		<title>CSC 216/s08/strive for happiness</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216/s08/strive_for_happiness&amp;diff=10704"/>
		<updated>2008-03-26T19:08:48Z</updated>

		<summary type="html">&lt;p&gt;Deswartz: /* The problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Formatting Resources===&lt;br /&gt;
[http://meta.wikimedia.org/wiki/Help:Wikitext_examples Formatting Help Guide from MetaWiki]&lt;br /&gt;
&lt;br /&gt;
==What is Polymorphism?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&amp;lt;p&amp;gt;Polymorphism is derived from Greek, meaning &amp;quot;many forms&amp;quot;.  Therefore, in Java, polymorphism is using a super class variable to refer to a subclass object, the &amp;quot;many forms&amp;quot; of the super class variable.  It is useful because interfaces and inheritance can be used more abstractly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;5 students would participate in the front of the class.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The rest of the class would participate and be divided into 2 teams.  Teams would be vying for &amp;quot;the prize&amp;quot;.  Incentive might be a victory trophy (cans of soda, candy bars, 1 extra point on the exam or homework).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Props would 8.5&amp;quot; x 11&amp;quot; paper with writing on it.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;4 students would be each be holding 3 pieces of paper:  1 with a number on the &amp;quot;door&amp;quot; and another  with code on it.  The code would be hidden behind the &amp;quot;door numbered&amp;quot; piece of paper.  The code would list the animal type.  The last piece of paper would be a method.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&amp;lt;p&amp;gt;There may be a Powerpoint slide still up on the screen with the rules listed as a reminder.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;A game loosely based on &amp;quot;Let's Make A Deal&amp;quot; would be played.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Teams would be formed (6-7 people or rows of students) would see a walk-through of 1 person going through the motions of choosing 1 of 4 doors and seeing what's behind each of the doors.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Behind each door would be an animal.  Each animal would have maybe 2 methods, such as talk() or daySleeper().&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;A follow up of the exercise would be that each team would be given a pile of scraps of paper with single lines of code (from the animal abstract interface example that was talked about) written on it.  The lines of code would need to be ordered correctly in the shortest amount of time.  Huge hints would have been given in the walk through, so students would have been needing to pay attention earlier.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  each team would attempt to write the code in order to make the walk-through work in a specified/requested fashion from the Powerpoint slide listed on the overhead.  For example:  Make an animal that is a carnivore, talk.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Next exercise:  Each group needs to write a main method for testing purposes to create a working action, specified by the overhead, from the code that was ordered together from the previous exercise.  Perhaps there is a time limit....&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;So there are 3 timed exercises with 3 prizes for the winning team:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;candy bars (miniatures)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;6-pack of soda (making it 1 can per person on the winning team)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;+1 point on next test or program&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deswartz</name></author>
	</entry>
</feed>