namespace ConsoleApplication26
{
class Program
{
string type = "Guitar";
int cost = 90;
string infotype()
{
return type;
}
int infocost()
{
return cost;
}
static void Main(string[] args)
{
Program m1 = new Program();
Console.WriteLine(m1.infotype());
Console.WriteLine(m1.infocost());
}
}
}
How can i use the above class(Program) in another Program?


Sign In
Create Account


Back to top









