Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Identify all the members of the following class xyz:

  Shared By: Brand Fischer    Date: Jun 16    Category: C++ Programming    Views: 1775

Answer:

Identify all the members of the following class xyz:

class xyz
{
int x,y;
public:
xyz();
void calc(int a, int b);
void output_calc(void);
};

Options

a) Data members x and y
b) Data members x and y, Constructor, and member functions calc() and output_calc()
c) Data members x and y, and member functions calc() and output_calc()
d) Constructor and member functions calc() and output_calc()

Answer : b) Data members x and y, Constructor, and member functions calc() and output_calc()

Share: 
 

Didn't find what you were looking for? Find more on Identify all the members of the following class xyz: Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: