Results 1 to 2 of 2

Thread: Abstract course or Interfaces in C#

  1. #1
    TaylorRyan is offline Senior Member
    Join Date
    Dec 2009
    Posts
    307
    Rep Power
    3

    Default Abstract course or Interfaces in C#

    I am last year computer science student. Yesterday our sir teach OOPs concept. I understand most of the concept very well but I am little bit confused between abstract class and interface. I want to know Difference between Abstract classes and Interfaces in C#. If you are having any suggestions then reply me. It can helpful to me.

  2. #2
    HernandezOrtiz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    301
    Rep Power
    3

    Default

    Abstract class

    • We can have concrete methods and abstract methods

    • We can give implementation for concrete methods.

    • An abstract class is a class that cannot be instantiated but that can contain code.

    Interfaces

    • We could not have concrete methods. All the methods are abstract methods implicitly.

    • And those methods allows only public access specified only. It won’t allow any final static keywords with methods.

    • An interface only contains method definitions but does not contain any code. With an interface, you need to implement all the methods defined in the interface.

Similar Threads

  1. Abstract class and interface
    By ThompsonHarris in forum Programming
    Replies: 2
    Last Post: 07-07-2010, 01:51 PM
  2. Interface Vs Abstract class
    By PerrySullivan in forum Programming
    Replies: 1
    Last Post: 06-08-2010, 02:02 PM
  3. Difference between an Interface and an Abstract class
    By JacksonPerez in forum Programming
    Replies: 2
    Last Post: 04-27-2010, 01:42 PM
  4. Consequence of c# Interfaces
    By PerezMorris in forum Programming
    Replies: 1
    Last Post: 02-09-2010, 05:43 PM
  5. Interfaces
    By youckin in forum Wireless Networking
    Replies: 0
    Last Post: 06-20-2008, 09:18 AM

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