Which Data Member In Following Code Will Be Used Whenever An #222
Which data member in following code will be used whenever an object is created?</p> <pre><code class="language-cpp"> Class A { int x; int y; int z; public : A() { y=100; x=100*y; } }; </code></pre>
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 Access Specifiers - OOPs MCQ: Private Access Specifier - Quiz No.2.
Which data member in following code will be used whenever an object is created?
Class A { int x; int y; int z; public : A() { y=100; x=100*y; } };
x will be used
y will be used
z will be used
All will be used