Which Among Following Is Correct For Initializing The Class #44

Which among following is correct for initializing the class below?</p> <pre><code class="language-cpp"> class student{ int marks; int cgpa; public: student(int i, int j){ marks=I; cgpa=j } }; </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOPs Concept & Features - OOPs MCQ: Objects - Quiz No.2.

Which among following is correct for initializing the class below?

 class student{ int marks; int cgpa; public: student(int i, int  j){ marks=I; cgpa=j } }; 

Similar question(s) are as followings:



Online Quizzes of gs111 OOP Object Oriented Programming Java

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background