I just verified this in the Lotus Domino Designer Help db. I never new this. I've created Lotusscript classes before, but never ones that inherited from other classes. Of course, I didn't have a need to explore this further until I finished the specs for a new application. The application will have four request types:
- New Hire Request
- Application/System Change Request
- Employee Information Change Request
- Termination Notice
Each request type will spawn from one to fifteen individual task documents. Since there will be substantial overlap between the request types and the tasks, using class inheritance will make it possible for me to treat a request object like the supertype in in some instances and like a subtype in other instances. The same will also hold true for the tasks. Best yet, I won't need to create duplicate versions of subroutines and functions in other script libraries. (For those of you who are familliar with object-oriented programming concepts, I forgive you for yawning.)
The only thing I wish Lotusscript would let you do is override class members. For example, you can only define one constructor (in either the superclass or a subclass). And you can't redefine a class variable in a subclass. Also, you can't have two methods with the same name, even if the method signature is different. Because of this, I don't think Lotusscript is really an object-oriented language. But, for my needs, it should be adequate.
http://www.jchq.net/index.htm