1. What is the difference between a static class and a static member variable or method?
  2. If a method is static but a class is not, do you need to make an instance of the class to access its static method?

What is the difference between a static class and a static member variable or method?

A static class cannot be instantiated, and can only contain static members. A non static class can contain static and non static methods.

If a method is static but a class is not, do you need to make an instance of the class to access its static method?

No, you can access the static method without Instantiating the class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.