No | Base of Difference | Static Class | Singleton Class |
1 | Serialize | We cannot do serializing Static Class. | We can Serialize Singleton Class. |
2 | Inherit | We cannot inherit the static class in other classes just like no Polymorphism. | We can inherit and extend singleton class by having a protected constructor. |
3 | Interface | We cannot implement an interface in Static Class. | We can implement an interface in Singleton Class. |
4 | Instance | In Static Class we cannot create and assign an instance to another variable. | We can create once instance and assign it to multiple variables. |
5 | Argument | We cannot pass an an argument to a method.
| We can passed this as an argument.
|