C Sharp (C#) - Classes and Objects
Which of the following statements correctly creates a new object of class
Car?Car?new ClassName() and assigning it to a variable.Car myCar = new Car(); which is correct syntax. Others are invalid or incorrect.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions