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. Feature Forums
  3. - Uncategorised posts -
  4. When we use interface and when we use abstract class

When we use interface and when we use abstract class

Scheduled Pinned Locked Moved - Uncategorised posts -
2 Posts 2 Posters 3 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.
  • R Offline
    R Offline
    rachitagarwal2828
    wrote on last edited by
    #1

    When we use interface and when we use abstract class. I need good and genuine answer. I know the basic differences so please avoid the stupid answer.

    D 1 Reply Last reply
    0
    • R rachitagarwal2828

      When we use interface and when we use abstract class. I need good and genuine answer. I know the basic differences so please avoid the stupid answer.

      D Offline
      D Offline
      David C Hobbyist
      wrote on last edited by
      #2

      rachitagarwal2828 wrote:

      When we use interface and when we use abstract class.

      Hi, The easy way to explain this is if you need to have functionality in this structure the abstract class with abstract methods is common. Or if no functionality is needed then interface would be best. Note this a generality. Hope this helps

      Frazzle the name say's it all
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. John F. Woods

      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