Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   ASP (http://siteownersforums.com/forumdisplay.php?f=11)
-   -   check the call to a method in VB.NET (http://siteownersforums.com/showthread.php?t=52203)

ncjbhd 11-01-2011 02:10 AM

check the call to a method in VB.NET
 
Im using VB.NET at the moment, and i have 2 classes Employee and RestrictedEmployee and the Employee class has a method called, changePin().

As you may have guessed RestrictedEmployee class inherits from Employee.

The problem I am having is that a RestrictedEmployee is not allowed to change their pin, so i need to return false if the call to the method is done from the RestrictedEmployee class...

How do i do this?

bakscliter 04-18-2012 06:10 AM

Thank you for posting it is most useful to me.

vivekaryan 04-19-2013 03:21 AM

thanks for sharing this.........


All times are GMT -7. The time now is 05:20 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.