Shortcut Navigation:

C Sharp Quiz (Method, Variable, Constructor)

A local variable

An instance variable

Private Button print = new button();

An instance method

A Constructor

class Test: Form { }

A variable declared inside a method is called a________variable

Defining two methods with the same name but with different parameters is called.

Find any errors in the following BankAccount constructor: Public int BankAccount() { balance = 0; }

In the body of a method, C# uses the variable named_____to refer to the current object whose method is being invoked.

Tagged as: method