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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Questions

Questions

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestionhtmlvisual-studioxml
2 Posts 2 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.
  • A Offline
    A Offline
    asifmaniar
    wrote on last edited by
    #1

    i found the following 2 questions in one of the question banks but can't seem to find an answer. Can anyone please help. Thanks. Questions - 1)In C#, what are the trade-offs that you should consider between interfaces and inheritance when designing for polymorphic behavior? 2)What are the advantages and disadvantages of streaming APIs like SAX, and ADO.NET’s Datareader vs non streaming APIs like the XML DOM and the ADO.NET Dataset?

    N 1 Reply Last reply
    0
    • A asifmaniar

      i found the following 2 questions in one of the question banks but can't seem to find an answer. Can anyone please help. Thanks. Questions - 1)In C#, what are the trade-offs that you should consider between interfaces and inheritance when designing for polymorphic behavior? 2)What are the advantages and disadvantages of streaming APIs like SAX, and ADO.NET’s Datareader vs non streaming APIs like the XML DOM and the ADO.NET Dataset?

      N Offline
      N Offline
      Nnamdi Onyeyiri
      wrote on last edited by
      #2

      All I can say for 1, is that you can only inherit from one type, so if there is a posibility that you may want to inherit from a particular type, use an interface instead.


      website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

      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