The goto account is the a lot of archaic C# jump statement. It transfers ascendancy to a labeled statement. The characterization have to abide and have to be in the ambit of the goto statement. More than one goto account can alteration ascendancy to the aforementioned label.
if (number % 2 == 0)
goto Even;
Console.WriteLine("odd");
goto End;
Even:
Console.WriteLine("even");
End:;
Can we have Non Abstract Method in Abstract Class in C#
-
Yes, you can have non abstract methods in abstract class. Along with non
abstract methods you can also have abstract methods in abstract class.
You can ...
0 comments:
Post a Comment