+ 15
Why the output is hello in this code?đ€
My code is given below: https://code.sololearn.com/cIUlmqC3sIs6/?ref=app Console.WriteLine is already exist .So why this code is not giving any error nor printing 5? Why the answer is hello?
7 Answers
+ 4
Your object's name and the method have overridden the actual printing statement!
So, instead of calling the system's already defined method to print things, it is calling the class you have made!
+ 4
WriteLine is a reserved word in
C#đ
https://code.sololearn.com/cr591sVUbXDE/?ref=app
0
There is hello written in the code
0
See carefully