Friday, 12 April 2013

What is difference between Class and Module

                                Both class and Modules are a collection of methods and properties. The major difference is that instances can be created from a class in the form of objects. But not from module. The scope of the members of a class is only for the lifetime of the object. But the scope of the members of a module exist for the life of the program.

No comments:

Post a Comment