can we make a class static without using static keyword?
Answer Posted / darwin
no not at all possible with this present java framework
format.. it coukd be possible only in future if they
enhances that option to do so.. and additionallly no outer
class can be static. you can also check by compiling in
java compiler...
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the benefits of polymorphism?
What is polymorphism what are the different types of polymorphism?
Which is better struts or spring?
What is encapsulation c#?
Which is not an object oriented programming language?
Why is static class not inherited?
What is oops with example?
What is advantage of inheritance?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Why do we use polymorphism?
What is object in oop with example?
What does no cap mean?
explain sub-type and sub class? atleast u have differ it into 4 points?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the main purpose of inheritance law?