Thursday 15 May 2014

What is a static method? how they are accessed?

Static method  are  attached  to aclass but dont need that class should  be  instantiated  to exrcute  that method  they usually used to instantiate the class
Static  method  can be  accessed by doubled  colon(::)


Pubilc  static mystaticmethod()
{
}
then this method  can be  accessed by 
myclass::mystatic method();

No comments:

Post a Comment

SQL/SSRS Interview questions I thought of blogging some SQL/SSRS interview questions.

Below are some. I will add more, when I complete the compilation 1. What is OLTP(Online Transaction Processing)? OLTP stands ...