What is static function and static class?

Answer Posted / anthony michael

Sourisengupta

Static Class is not possible in C++. But it can be done in
Managed C++

Static Class:
For Static Class we can't create Instances and It can only
hold Static member's.

Creating a static class is therefore much the same as
creating a class that contains only static members and a
private constructor. A private constructor prevents the
class from being instantiated.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c++ storage classes?

620


Define pointers?

609


Differentiate between realloc() and free().

595


Do you know about C++ 11 standard?

633


What is c++ library?

597






what is data encapsulation in C++?

607


How should a contructor handle a failure?

688


What are all predefined data types in c++?

559


Can I learn c++ as my first language?

609


Is c better than c++?

619


Can a constructor be private?

582


Explain the difference between static and dynamic binding of functions?

553


Why is main function important?

587


What do you mean by stack unwinding in c++?

732


What is c++ and its features?

578