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 are the benefits of polymorphism?
Why do we use inheritance?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What are classes oop?
What is polymorphism in oops with example?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is the diamond problem in inheritance?
What is abstraction in oop with example?
Can an interface inherit a class?
What is debug class?what is trace class? What differences are between them? With examples.
Whats oop mean?
What are the two different types of polymorphism?
Write a program to reverse a string using recursive function?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the full form of oops?