can we make a class static without using static keyword?
Answer Posted / mamta subramanian
We cannot declare any outer class as static. There would a
compiler error if we do so.
But if it is an inner class we can declare it as static.
and it act as a static object of outer class.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Why do while loop is used?
What is advantage of inheritance?
What does I oop mean?
What is for loop and its syntax?
What is abstraction example?
What are the three parts of a simple empty class?
c++ program to swap the objects of two different classes
What are the 5 oop principles?
What is destructor in oop?
What is an interface in oop?
Can main method override?
what are the realtime excercises in C++?
What is encapsulation process?
What is polymorphism and its types?
What are the important components of cohesion?