Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

2280


Why do we need oop?

1182


What is multilevel inheritance in oop?

1025


What is difference between abstraction and encapsulation?

1069


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4141


What is encapsulation c#?

1072


Is oop better than procedural?

1032


What are constructors in oop?

1163


write a programe to calculate the simple intrest and compund intrest using by function overlading

2191


How do you use inheritance in unity?

1071


What is oops and why we use oops?

1036


What is the point of oop?

1176


what is the sylabus for priliminaries?

2175


What is interface in oop?

1114


What is difference between pop and oop?

1156