List out some main differences between standard modules and class modules?
The main difference between standard and class modules is in the way they handle the data.
Class Module | Standard Module | |
---|---|---|
1. | In the Class module, objects have their own copies of data. | In the Standard module, there is only one copy of the global variable exist. |
2. | These are implementation of OOPs | These are the implementation of procedural language. |
3. | Public variables can only be accessed if an object variable contains a reference to a particular instance of the class. | In the standard module, if a variable is declared Public then it can be visible from anywhere. |
4. | Inheritance is supported by class module | It doesn’t support inheritance. |
BY Best Interview Question ON 26 Feb 2022