Access static method from non static class possible in java and not in c#
- by sagar_kool
Access static method from non static class with object.
It is not possible in C#. Where it is done by JAVA.
How it works?
example of java
/**
* Access static member of the class through object.
*/
import java.io.*;
class StaticMemberClass {
// Declare a static method.
public static void staticDisplay() {
…