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
Explain what is polymorphism in c++?
Is c++ the hardest programming language?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
What is virtual destructor? What is its use?
What is an undefined reference/unresolved external symbol error and how do I fix it?
What is the rule of three?
Can static member variables be private?
what are the iterator and generic algorithms.
What is encapsulation in c++ with example?
Why pointer is used in c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is c++ vb?
How can an improvement in the quality of software be done by try/catch/throw?
What is the two main roles of operating system?