Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 11-01-2011, 02:10 AM   #1
ncjbhd
Registered User
 
Join Date: Jul 2011
Posts: 262
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?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ncjbhd is offline   Reply With Quote

Old 04-18-2012, 06:10 AM   #2
bakscliter
Registered User
 
Join Date: Apr 2012
Location: USA-Florida
Posts: 11
Thank you for posting it is most useful to me.
bakscliter is offline   Reply With Quote
Old 04-19-2013, 03:21 AM   #3
vivekaryan
Registered User
 
Join Date: Apr 2013
Posts: 58
thanks for sharing this.........
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
vivekaryan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:42 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.