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
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is encapsulation oop?
write a C++ program for booking using constructor and destructor.
What is use of overloading?
What is basic concept of oop?
Can enum be null?
What is encapsulation with example?
What is advantage of inheritance?
What is cohesion in oop?
Is react oop?
Templates mean
Why do we use polymorphism in oops?
What is the fundamental idea of oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is object-oriented programming? Webopedia definition