-
Whats the output of following codeClass A Public Overridable Sub F() End SubEnd ClassClass B Inherits A Public Overridable Sub F() End SubEnd Class
A) Runtime ErrorB) Compiler ErrorC) Compiler Throws a warning message
-
What is the out put of the following codeMustInherit class MyFirstclassPublic Dim Num as IntegerPublic Sub New( I as integer) Num=iEnd SubEnd ClassClass Test Dim cls as New MyFirstclass( 100) Console.writeLine (cls.Num)End Class
A) Can not Create an Instance of MyfirstClassB) MyFirstclass is created and 100 is assigned to Num variableC) Runtime Error
-
Which statement shows Boxing?
A) Dim O as object=I ( as i an integer)B) Dim I as integer=OC) Both
-
How do you Create Constructors in VB.NET
A) Create a method and name it with the same name as class nameB) Create a method and which is named as NewC) Create a method and which is named as Initialize