edited by
10,499 views
1 votes
1 votes

a class having no name

  1. is not allowed
  2. cannot have a constructor
  3. cannot have a destructor
  4. cannot be passed as an argument
edited by

1 Answer

Best answer
3 votes
3 votes
since this class dont have name it can not have constructor or destructor and it can neither be passed as argument.

so ans is B,C,D  

 

is quite useless, but you can specyfy a class without a name and then create instances of this class. Knowing that you can use the following:
selected by

Related questions

0 votes
0 votes
1 answer
2
Sanjay Sharma asked Feb 26, 2017
16,989 views
A struct is the same as a class except that(A) there are no member functions.(B) all members are public.(C) cannot be used in inheritance hierarchy.(D) it does have a thi...
0 votes
0 votes
0 answers
4
radha gogia asked Jul 26, 2018
285 views
If we have a n*n Bit-Array in which we have only 1's and 0's filled . Constraint is that in every row , 0 comes before 1 , so how to find the index of the row which has m...