Results 1 to 4 of 4

Thread: [RESOLVED] Interface Question

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Resolved [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

  2. #2
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    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

  3. #3
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    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.

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Re: Interface Question

    Thanks, that helped alot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width