|
-
Jul 29th, 2002, 12:10 AM
#1
[RESOLVED] Friend vs Protected
Iam working with inheritance in VB.NET?
I wish to know the difference between Freiend Sub and Protected Sub.
Please explain it with a small example?
-
Jul 29th, 2002, 08:31 AM
#2
Friend means the routine is visible to the entire program. Meaning any class in that app can call the sub.
Protected means the routine can only be called by a class the inherits the class with the protected routine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|