What does it mean?
Having a non-static class which has for example one static method?
Without creating an instance of that class, we can’t use it. But What about its static method?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The static method can be used without the need of instantiating the class. One common case this is used is when the constructor of a class is private and a static method is provided to return instances, like a factory. For example the Create method: