C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 15)
15.
Which of the following statements are correct about static functions?
Discussion:
2 comments Page 1 of 1.
NAVEEN KUMAR OBEROI said:
1 decade ago
Static variables/instances get the memory prior to the creation of objects so there is no need for the object to be created. Before creation of an object static variables gets initialized. In the same way static functions does not require to invoke through objects these gets invoked by using class name.
Pranit said:
1 decade ago
Instance function are invoked by using object of class and Static functions are invoked using class.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers