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
Can bst contain duplicates?
Which is not an object oriented programming language?
Why do we use class?
How can you overcome the diamond problem in inheritance?
What is protected in oop?
Which language is not a true object oriented programming language?
What is destructor give example?
What are the important components of cohesion?
What is object in oop?
What is encapsulation and abstraction? How are they implemented in C++?
What is inheritance in simple words?
What is balance factor?
What is interface in oop?
What is encapsulation example?
What is polymorphism explain its types?