Skip to content

Commit 4f14f88

Browse files
Make car2 a type of Car instead of ConvertibleCar (#48495)
1 parent dd18a4e commit 4f14f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/programming-guide/classes-and-structs/knowing-when-to-use-override-and-new-keywords.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public static void TestCars1()
279279
// used in the definition of ShowDetails in the ConvertibleCar
280280
// class.
281281
282-
ConvertibleCar car2 = new ConvertibleCar();
282+
Car car2 = new ConvertibleCar();
283283
car2.DescribeCar();
284284
System.Console.WriteLine("----------");
285285

0 commit comments

Comments
 (0)