The Gateway to Computer Science Excellence
+1 vote
898 views

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
in Object Oriented Programming by Active (2.3k points)
edited by | 898 views

1 Answer

+2 votes
Best answer
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:
by Boss (49.3k points)
selected by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,291 answers
198,209 comments
104,889 users