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?
Printable View
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?
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.