<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/index.php?action=history&amp;feed=atom&amp;title=CSC_216_F09%2FInterface-Polymorphism</id>
	<title>CSC 216 F09/Interface-Polymorphism - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/index.php?action=history&amp;feed=atom&amp;title=CSC_216_F09%2FInterface-Polymorphism"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Interface-Polymorphism&amp;action=history"/>
	<updated>2026-05-11T15:53:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Interface-Polymorphism&amp;diff=27941&amp;oldid=prev</id>
		<title>Arsebera at 03:29, 18 November 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Interface-Polymorphism&amp;diff=27941&amp;oldid=prev"/>
		<updated>2009-11-18T03:29:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''The Problem'''&lt;br /&gt;
&lt;br /&gt;
This exercise demonstrates the effect of inheritance/polymorphism through class interactions. Several students will be designated as the Superclasses while others will be designated subclasses of that superclass. Each person designated as the superclass has a set of methods that are inherited by the subclasses. The subclasses then can perform these methods relative to the properties of their class.&lt;br /&gt;
This exercise can provide for a humorous way to understand how classes can inherit methods from it's superclass.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''An example is given:''&lt;br /&gt;
&lt;br /&gt;
-One person is designated as the Mammal class. &lt;br /&gt;
&lt;br /&gt;
-The mammal class has a walk(), and a talk() method. &lt;br /&gt;
&lt;br /&gt;
-3 other people are designated as the subclasses: &amp;quot;Cow&amp;quot;, &amp;quot;Person&amp;quot;, &amp;quot;Duck&amp;quot; (or any other mammal with a distinct vocal characteristic).&lt;br /&gt;
&lt;br /&gt;
-The four people are given class-name tags for clarity.&lt;br /&gt;
&lt;br /&gt;
-Each of the classmates can then walk up to the subclasses and ask them to perform one of the inherited methods (walk() or talk()). &lt;br /&gt;
&lt;br /&gt;
-The subclass then performs his/her interpretation of how that mammal talks or  walks.&lt;br /&gt;
&lt;br /&gt;
''*More Superclass/subclass relationships can be used to allow for more classmate interaction. *''&lt;br /&gt;
&lt;br /&gt;
'''Participants'''&lt;br /&gt;
&lt;br /&gt;
-The entire class will be able to participate in this activity. &lt;br /&gt;
&lt;br /&gt;
-The people designated as the classes will perform the methods that are called by their classmates.&lt;/div&gt;</summary>
		<author><name>Arsebera</name></author>
	</entry>
</feed>