Tuesday, April 16, 2024 18:11

Posts Tagged ‘other operators’

Virtual Methods

Sunday, December 8th, 2019

Virtual methods are methods that can be overridden in inheriting (derived) classes. By default, in .NET, methods are not virtual. In order to declare a method as virtual, we need to declare it using the keyword virtual, like so:

Read more

Return operator

Tuesday, April 18th, 2017

In few of our previous lessons, we used functions – methods that not only can be called, perform some action, but also return a value to the caller – the piece of code that called them. You can imagine this as placing the returned value in the place where the function was invoked from.… Read more

Continue operator

Monday, January 16th, 2017

In the last article, we spoke about the Break operator being used to immediately stop a loop and continue the execution with the statements that follow after the loop. The Continue operator works somehow in the same way, with the only difference that it will only make the execution skip the current iteration of the loop.… Read more

Break operator

Monday, January 16th, 2017

The break operator is used whenever we want to end a loop immediately, even before ending its execution in a natural way. Whenever the Break operator is met, the execution of the loop is immediately stopped and the program continues executing the first instruction that follows after the loop.… Read more

Other operators

Friday, January 6th, 2017

Aside of the operators I have enumerated so far, there are a few other operators that are either too simple, too rarely used or too unimportant to create additional posts for them.

The . (dot) operator. We’ve used it quite a lot so far (remember Console.WriteLine?).… Read more


Follow the white rabbit