Nath

Nath

  • NA
  • 34k
  • 0

Inheritance problem

Apr 18 2006 12:25 PM

Why won't this code work?

using System;

using System.Windows.Forms;

namespace Practice

{

class Practice

{

public static void Main()

{

// declare and assign a string variable called human

string human;

human = "Walking & talking life";

// declare and assign an int variable called mind

int mind;

mind = 100;

// Print the value of the variables to the console

Console.WriteLine(mind);

Console.WriteLine(human);

}

}

class Continued

{

public static void notMain()

{

MessageBox.Show(human);

MessageBox.Show(mind);

}

}

}

 


Answers (1)