I'M reading the book that's in the title. Let me show you what's going on.
I'M given the following code, an example of Inheritance.
using System;
namespace CritClone
{
class CritViewer
{
static void Main(string[] args)
{
CritViewer cv = new CritViewer();
}// end main
public CritViewer()
{
Clone myClone = new Clone();
myClone.name = "Dolly";
Console.WriteLine(myClone.talk());
Console.WriteLine("Please press Enter to continue");
Console.ReadLine();
}// end constructor
}// end critviewer
}// end namespace
And then the next page gives me this part.
using System;
namespace CritClone
{
public class Clone : Critter
{
// nothing here
}
}
But it looks to me like it's two different files that have no connection. Also, did I miss the creating the talk() method? I don't understand what's going on here, the book seems to be going all over the place and I'M unable to follow. Am I doing something wrong?