Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. A Class to interface with many types

A Class to interface with many types

Scheduled Pinned Locked Moved C#
question
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iltallman
    wrote on last edited by
    #1

    :confused:I need to create a class which interfaces with a whole host of other classes. Instead of a Base Class <> Class relationship, I want a Class to interface between many different types of basic classes. My New Interface Class <> Basic Class (of many types) This way I have a COMMON interface and structure for my application to work with these basic types. I think if I use the Base Class <> Class relationship, my application code will be very type specific because of the different functions and data that will be available with the different basic classes. Is there a good location to read up on this? Any Go-By's? Anybody think this is backwards? It may be worth mentioning that the different basic classes will all be of similar type, meaning all wil be data and functions. Its not like I am working with graphic, audio and/or function differences.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups