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


Please Help Members By Posting Answers For Below Questions

What type of loop is a for loop?

844


what are the different types of qualifier in java?

1999


Give two or more real cenario of virtual function and vertual object

2045


What is methods in oop?

722


Why is static class not inherited?

800






Why do we use class?

798


What is inheritance and how many types of inheritance?

789


Whats oop mean?

762


What is interface in oop?

851


What is the difference between procedural programming and oops?

746


Why is polymorphism used?

752


What is a null tree?

832


What is the main purpose of inheritance law?

909


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6335


How do you define social class?

773