|
-
Mar 2nd, 2007, 10:32 AM
#1
Thread Starter
Member
[RESOLVED] Interface Question
I dont understand Interfaces to well, but I think they are what I need to use for this. I have an object that can mean 2 different things. The object is called "Center" and will be used in a "Center" project and "Admin" project. If a person is added at the Center then I want the Center.Update property to be filled with that persons name. I want that same name to go into the Admin.Requested property. If I create a generic class that has updates and requested in, could I create an interface that will access the correct property (Center.Update = Admin.Requested)? Thanks
-
Mar 2nd, 2007, 02:56 PM
#2
Hyperactive Member
Re: Interface Question
To my understanding, interfaces are used in order to standardize a set of methods to any class implimenting that interface. The interface contains zero code other then a declaration of properties and/or methods.
Currently Using: VS 2005 Professional
-
Mar 6th, 2007, 03:28 AM
#3
Fanatic Member
Re: Interface Question
CB has a good post about interfaces.
http://vbforums.com/showthread.php?t=454165
Though it's Java, nothing specific is discussed. It's more like Class = is a relationship, and interface = has a relationship. It's a good way to operate non related objects.
-
Mar 6th, 2007, 02:53 PM
#4
Thread Starter
Member
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
|