need some help with access types.

D

David

Lets say you have a class named myclass and in this class
you have a sub named mysub. How would you access this sub
from within a module outside of this class named mymodule
with these access types.
public
protected
friend
protected friend
private
static
shared
shadows
readOnly
Or else try to explain these types some other way.
 
C

Cor

Hi David,

Did you know that on this developers website is a lot of information of this
kind of things.

http:\\msdn.microsoft.com

I hope this helps.

Cor
 
H

Herfried K. Wagner [MVP]

* "David said:
Lets say you have a class named myclass and in this class
you have a sub named mysub. How would you access this sub
from within a module outside of this class named mymodule
with these access types.
public
protected
friend
protected friend
private
static
shared
shadows
readOnly
Or else try to explain these types some other way.

Pass a reference to your instance of the class to the procedure and mark
the method as 'Public' or 'Friend'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top