VISUAL BASIC

INTRODUCTION TO NET

BASICS OF NET FRAMEWORK

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The ____ language allows more than one method in a single class.
A
C#
B
J#
C
C++
D
C
Explanation: 

Detailed explanation-1: -For convenience, Java allows you to write more than one method in the same class definition with the same name. For example, you can have two methods in ShoppingCart class named computeCost. Having two or more methods named the same in the same class is called overloading.

Detailed explanation-2: -Method name − Method name is a unique identifier and it is case sensitive. It cannot be same as any other identifier declared in the class. Parameter list − Enclosed between parentheses, the parameters are used to pass and receive data from a method.

Detailed explanation-3: -The name “C sharp” was inspired by the musical notation whereby a sharp symbol indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where “++” indicates that a variable should be incremented by 1 after being evaluated.

Detailed explanation-4: -Reusability – By using generic classes and methods, you can write code that can work with multiple data types without the need to create a separate version for each data type. This makes your code more reusable and reduces the amount of code you need to write.

There is 1 question to complete.