C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 4)
4.
Which of the following statements are correct about static functions?
- Static functions can access only static data.
- Static functions cannot call instance functions.
- It is necessary to initialize static data.
- Instance functions can call static functions and access static data.
- this reference is passed to static functions.
Discussion:
12 comments Page 2 of 2.
Penchala Naidu said:
1 decade ago
In case of Constructor concept, Static constructor cannot access non-static variables but non-static constructor can access static variables for initialization.
Dheeraj said:
1 decade ago
Option 2. Is wrong? static Main () can call instance methods of class.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers