What is the output of the following code in Test classClass Myclass Dim Num as Integer Private Sub New (i as integer) Num=i End subEnd class Class Test Sub Main() Dim c as MyclassC=New Myclass (10)End subEnd Class

A) Num variable of Myclass is initialized to 10
B) Run Time Error
C) Compiler Error
D) StackOverflow Exception
Explanation: Constructor is declared as Private hence Compile error

Showing Answers 1 - 3 of 3 Answers

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions