akhendre88
Board Regular
- Joined
- Sep 17, 2015
- Messages
- 76
Hello,
'VBA supports Polymorphism and Encapsulation but not inheritance'. But how? Can someone help me to understand.
Polymorphism : To implement polymorphism, class should implement methods or properties of other class (super class) but VBA does not support Inheritance. So how it is possible.
Encapsulation : We can declare variables as Private and to access those we can use get and set property. Is this Encapsulation?
Inheritance : We can use the variables or properties of class in Normal module, so the module is extending the class, isn't it?
Thanks.
'VBA supports Polymorphism and Encapsulation but not inheritance'. But how? Can someone help me to understand.
Polymorphism : To implement polymorphism, class should implement methods or properties of other class (super class) but VBA does not support Inheritance. So how it is possible.
Encapsulation : We can declare variables as Private and to access those we can use get and set property. Is this Encapsulation?
Inheritance : We can use the variables or properties of class in Normal module, so the module is extending the class, isn't it?
Thanks.