Why don\'t we use Classes?
I moved from .Net development to automation and until recently wasn't knowing that in VBScript also we can use classes.. most automators I seen don't use them.. I have been doing it for a while and never used it..
Are there in challenges in using that? Or we really not get full power of object oriend language so it's not worth to do it? Would appreciate your thoughts..
thanks so much!
Re: Why don\'t we use Classes?
There are quite a few posts here on VbScript classes. A number of people including myself use them. One major challenge in using VbScript classes is that they lack inheritance.
VbScript classes do have a 'Me' reference. So you can have a pseudo parent/child relationship between classes. This is only a marginal work around coming from .Net or Ruby where real inheritance is taken for granted.