namespace LEARNING
{
public class Human
{
public string nameOne;
public string nameTwo;
public int ageOne;
public bool hasagetwo;
public int ageTwo;
public bool isalive;
public void Info()
{
Console.WriteLine("Name =" + nameOne + "," + nameTwo);
}
}
class Program
{
static void Main(string[] args)
{
/* Class Stuff */
Human humanOne = new Human();
Human.nameOne = "Adrian";
Human.hasagetwo = true;
Console.WriteLine(humanOne.nameOne);
Human.Info();
/* Basic Things Down There */
const string stringOne = "String";
const string notes = "The Fact that String One has the Value of 'String One' is :";
Console.WriteLine(notes);
Console.WriteLine(stringOne == "StringOne");
int a = 10;
int b = 3;
int c = 11;
Console.WriteLine(++a);
Console.WriteLine(a - b);
Console.WriteLine(a == c);
Console.WriteLine(b != a);
Console.WriteLine(a = c);
Console.WriteLine(a != c && a == 10);
Console.WriteLine(b != 6 || a == c);
Console.WriteLine(!(a == b));
/* Classes Down There */
Human Adrian = new Human();
}
}
}
CS0120 C# An object reference is required for the non-static field, method, or property