Define anonymous class.



Define anonymous class...

Answer / Santosh Kumar Tripathi

Anonymous classes in C++ are classes that do not have a name. They can only be defined within the scope of another class or a function. Anonymous classes can be useful when you want to create a class solely for the purpose of using it as a base class, a nested class, or an argument type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain the volatile and mutable keywords.

1 Answers  


What is an action class?

1 Answers  


What is format for defining a structure?

1 Answers  


What is the use of map in c++?

1 Answers  


Is set c++?

1 Answers  


What is the difference between a definition and a declaration?

1 Answers  


What is token c++?

1 Answers  


if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3

3 Answers  


Is map ordered c++?

1 Answers  


What are manipulators used for?

1 Answers  


What is flush programming?

1 Answers  


Define namespace in c++?

1 Answers  


Categories