class Person
{
public string firstName;
public string lastName;
public void showFullName()
{
Console.WriteLine("Name is " + this.firstName + " " + this.lastName);
}
}
When trying to call a instance of this object by doing
class Person
{
public string firstName;
public string lastName;
public void showFullName()
{
Console.WriteLine("Name is " + this.firstName + " " + this.lastName);
}
}
Person Kevin;
Kevin = new Person();
}
It doesnt seem to recognize the Person object? It highlights in red as if it doesnt exist. Please help?


Sign In
Create Account

Back to top









