Menu
×
×
Correct!
Exercise:Create an object of
class Car
{
int maxSpeed;
static void Main(string[] args)
{
@(3) @(5) = @(3) @(3)();
@(5).@(8) = @(3);
Console.WriteLine(myObj.color);
Console.WriteLine(myObj.maxSpeed);
}
}
class Car
{
int maxSpeed;
static void Main(string[] args)
{
Car myObj = new Car();
myObj.maxSpeed = 200;
Console.WriteLine(myObj.color);
Console.WriteLine(myObj.maxSpeed);
}
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 58 exercises.
Are you sure you want to continue?