Results 1 to 3 of 3

Thread: Abstract class and interface

  1. #1
    ThompsonHarris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    255
    Rep Power
    3

    Default Abstract class and interface

    Hi. I am last year IT student, currently I am learning OOPS concept. I am little bit stuck between when to for abstract class and when to go for interface. If you are having any information’s then reply me. It can helpful to me. Thanks in advanced.

  2. #2
    GonzalezBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    260
    Rep Power
    3

    Default

    • If your class designs have some common and some different actions then use abstract class

    • If your class designs have only different actions then use interface.

  3. #3
    LewisClark is offline Senior Member
    Join Date
    Dec 2009
    Posts
    260
    Rep Power
    3

    Default

    If class has many implementations then we use Interface and class which have particular features and some other features may change then use abstract class.

Similar Threads

  1. Interface Vs Abstract class
    By PerrySullivan in forum Programming
    Replies: 1
    Last Post: 06-08-2010, 02:02 PM
  2. Difference between an Interface and an Abstract class
    By JacksonPerez in forum Programming
    Replies: 2
    Last Post: 04-27-2010, 01:42 PM
  3. Abstract course or Interfaces in C#
    By TaylorRyan in forum Software Jargons
    Replies: 1
    Last Post: 04-20-2010, 01:34 PM
  4. JSlider class
    By Brownchris in forum Programming
    Replies: 2
    Last Post: 02-17-2010, 01:13 PM
  5. SqlConnection Class
    By WilsonMartin in forum Programming
    Replies: 1
    Last Post: 01-30-2010, 02:34 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48