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

How can you quickly find the number of elements stored in a static array?

652


What is the full form of stl in c++?

686


Do you know what are static and dynamic type checking?

628


What is vector string in c++?

582


Which is the best c++ software?

624






What is the use of pointer in c++ with example?

567


What is the basic concept of c++?

584


Should the member functions which are made public in the base class be hidden?

572


What is a stack c++?

583


What is called array?

624


What is virtual destructor ans explain its use?

614


Explain the operation of overloading of an assignment operator.

706


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3445


Explain the difference between class and struct in c++?

600


What is pure virtual function? Or what is abstract class?

602