मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Class x{ int y; public: x(int z){y=z;} } x1[4];int main(){ x x2(10);return 0;} How many objects are created for the above program? - Computer Science

Advertisements
Advertisements

प्रश्न

class x
{
   int y;
   public:
   x(int z){y=z;} } x1[4];
int main()
{ x x2(10);
return 0;}

How many objects are created for the above program?

पर्याय

  • 10

  • 14

  • 5

  • 2

MCQ

उत्तर

5

shaalaa.com
Creating Objects
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 14: Classes and objects - Evaluation - Section – A [पृष्ठ २४६]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 14 Classes and objects
Evaluation - Section – A | Q 6. | पृष्ठ २४६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×