作者:exu8145079 | 来源:互联网 | 2023-09-08 19:39
IamactuallyworkingonmyfirstVBAproject.(comefromC++)我正在做我的第一个VBA项目。(来自C++)Iwouldlik
I am actually working on my first VBA project. (come from C++)
我正在做我的第一个VBA项目。(来自C + +)
I would like to improve an existing VBA project used by a Microsoft Excel workbook by implementing classes and polymorphism.
我想通过实现类和多态性来改进Microsoft Excel工作簿使用的现有VBA项目。
My problem is:
我的问题是:
1 - I read a lot of articles/forums which explain that VBA is not an Object Oriented Programming (OOP) language and do not support Polymorphism.
1 -我读了很多文章/论坛,解释了VBA不是面向对象编程(OOP)语言,不支持多态性。
Some of them propose a workaround using the keyword Implements.
他们中的一些人提出了使用关键字实现的解决方案。
2 - I also found some webpages like this one which explain how to perform OOP and polymorphism in VBA using keywords like Inherits, Overrides, Overridable, MustOverrides.
2 -我还发现了一些像这样的网页,解释了如何使用继承、重写、可重写、MustOverrides等关键字在VBA中执行OOP和多态性。
So my question is :
我的问题是
Is VBA an OOP language, and does it support polymorphism ?
VBA是一种OOP语言,它支持多态性吗?
2 个解决方案