Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27346

Object orientated programming - Classes

$
0
0
Ok, this may be a strange or even simple question, whoever I am still trying to grasp oop

When you have a defined class, you create an instance of it. I.e

Dim Myobject as new object

This now creates an instance of the class.

At this point does it actually execute any code withing the Class. I.E as soon as you created an instance of the class, could you for instance code 'msgbox('instance Created'). Not in the main programme, but in the class.

Whilst you probably would not want to do this, it is all about me understanding oop.

Thanks

Viewing all articles
Browse latest Browse all 27346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>