Click here to Skip to main content
15,917,060 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
can call a method with out creating an object.....
Posted
Comments
Arun Jacob 26-May-10 2:01am    
Reason for my vote of 1
Is this a Q/A or comment or ?

Actually in object oriented programming one have to use the object for calling the function,there is an another way to call a method by using static key word if the function is declared with static we can call directly without an object
 
Share this answer
 
Static methods can be called without creating instances.
See here.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900