<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>need clarification on &quot;Polymorphism, Virtual Methods, and Abstract Classes&quot; page</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-825404/need-clarification-on-polymorphism-virtual-methods-and-abstr</link>
		<description>Posts in the discussion thread &quot;need clarification on &quot;Polymorphism, Virtual Methods, and Abstract Classes&quot; page&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 06 Mar 2026 11:26:35 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-825404#post-1997041</guid>
				<title>Re: need clarification on &quot;Polymorphism, Virtual Methods, and Abstract Classes&quot; page</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-825404/need-clarification-on-polymorphism-virtual-methods-and-abstr#post-1997041</link>
				<description></description>
				<pubDate>Sun, 23 Mar 2014 15:58:09 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Bryan! Sorry for the delay in responding, and thanks, PiscesMike for jumping in and saying something!</p> <p>Your post is still over on the UserVoice page, it's just on the second page. They're arranged by vote count by default, so new items start at the back. You can sort by &quot;New&quot;, which brings your item up to the top. Here's your post: <a href="http://rbwhitaker.uservoice.com/forums/216936-general/suggestions/5646724-where-should-the-code-pieces-be-put">http://rbwhitaker.uservoice.com/forums/216936-general/suggestions/5646724-where-should-the-code-pieces-be-put</a></p> <p>For some reason, the CSS isn't loading over there this morning for me. The page that loads is ugly right now. It's not usually that way. I don't know if it's just me, or if everyone is having that problem, but if it does look ugly, just keep in mind that it doesn't usually do that.</p> <p>Anyway, on to actually answering your questions.</p> <p>The &quot;elsewhere&quot; really refers to anywhere you want. It's just an example. That code could go directly in your <em>Main</em> method or in a method in another class that you create.</p> <p>What you're really getting at is the heart of object-oriented design. When you create a class like this code does, you define what a category of objects is capable of doing. In this case specifically, you've defined what all players should be capable of. (More specifically, because of the inheritance aspect, we've defined what players in the general case can do (<em>MakeMove</em>) and then created two different types of players that make a move in their own unique way. That's actually the role of inheritance.)</p> <p>I don't know if you've already read the tutorials on classes leading up to the polymorphism one, but that's a good place to start if you haven't. For instance, in the first tutorial about classes, I talked about the <em>Random</em> class that Microsoft created. It's purpose is to be able to generate random numbers. That tutorial has examples on how the rest of your project could create an instance of a <em>Random</em> object and then use it to pick random values for different things.</p> <p>Of course, the other thing that I should point out here is that object-oriented development and design takes some getting used to. It's not always easy to see how your code should be structured and grouped into objects. It's one of those things that takes practice, and the more practice you get, the more easily you can see how to structure your code.</p> <p>I know this answer is kind of long, and I'm not positive I've truly answered your questions. Don't hesitate to ask follow up questions. I'm usually quicker at responding to them than I've been this last week.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-825404#post-1995799</guid>
				<title>Re: need clarification on &quot;Polymorphism, Virtual Methods, and Abstract Classes&quot; page</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-825404/need-clarification-on-polymorphism-virtual-methods-and-abstr#post-1995799</link>
				<description></description>
				<pubDate>Fri, 21 Mar 2014 10:19:42 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey Bryan! I just wanted to drop a quick line and let you know we're not ignoring you or your question.</p> <p>Unfortunately, I personally don't have the experience to give you the answers you need. Or, if I were to try I don't want to steer you in the wrong direction.</p> <p>That being said, I'm actually trying to forward your question to Mr. Whitaker. It doesn't usually take so long, but things can tend to get busy during the work week. I'm still keeping an eye out for him in chat, and when I see him, I'll make sure to mention your issues.</p> <p>Basically, I just wanted to let you know we are around and will get you an answer soon!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-825404#post-1994193</guid>
				<title>need clarification on &quot;Polymorphism, Virtual Methods, and Abstract Classes&quot; page</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-825404/need-clarification-on-polymorphism-virtual-methods-and-abstr#post-1994193</link>
				<description></description>
				<pubDate>Wed, 19 Mar 2014 06:42:13 +0000</pubDate>
				<wikidot:authorName>Bryan</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>First, a procedural question: I entered something similar to what I have below via the <em>Feedback</em> button but never heard anything back on it and wasn't able to find it in the <em>Forums</em> section. Where do those posts actually &quot;go&quot;? Where can I see what I've posted? <em>Search</em> didn't bring up anything.</p> <p>Now to questions about the content of the page mentioned in the title:</p> <p>How would one actually use the classes listed on that page? In other words, how would you access them from &quot;static void Main&quot;?</p> <p>Toward the end of the &quot;Virtual Methods and Overriding&quot; section, it reads: &quot;To fully illustrate how this works, let's look at some code that could go elsewhere in your program.&quot; Where is that &quot;elsewhere&quot;? In what class should the four code lines following be placed?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>