- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Evaluate. Which statement must be true for the code to compile and run correctly? public class B : A { public B(int i) :base(i) { } }

1.One of the constructors in the class A takes an argument of the type int

2.One of the constructors in the class A takes an argument of the type I, and the class has only a default constructor

3.One of the constructors in the class A takes an argument of the type i

4.Class A has only a default constructor

Posted Date:-2022-08-15 11:17:32


More MCQS Questions and answers

Search