+ 1

Why compiliator gives error when i try assign a value fuelCons in derived class? where is my mistake?

derived class https://code.sololearn.com/cJqqnITxuHTg/?ref=app

4th Aug 2017, 1:18 AM
Nursultan Esirkegenov
Nursultan Esirkegenov - avatar
3 odpowiedzi
+ 1
Hi Jamie. Thx for your advice. I put that line in a constructor of derived class. It works:)
4th Aug 2017, 1:53 AM
Nursultan Esirkegenov
Nursultan Esirkegenov - avatar
+ 1
Also, you wrote: "Console.Writeline" The 'l' in line should be upper case, like: WriteLine Console.WriteLine("C# is case sensitive");
4th Aug 2017, 1:54 AM
Rrestoring faith
Rrestoring faith - avatar