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
What type of loop is a for loop?
what are the different types of qualifier in java?
Give two or more real cenario of virtual function and vertual object
What is methods in oop?
Why is static class not inherited?
Why do we use class?
What is inheritance and how many types of inheritance?
Whats oop mean?
What is interface in oop?
What is the difference between procedural programming and oops?
Why is polymorphism used?
What is a null tree?
What is the main purpose of inheritance law?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
How do you define social class?