Logo 
Search:

C# FAQ

Submit Interview FAQ
Home » Interview FAQ » C#RSS Feeds

Is a C# interface the same as a C++ abstract class?

  Shared By: Topaz Ramirez    Date: Jan 06    Category: C#    Views: 618

Answer:

No, not quite. An abstract class in C++ cannot be instantiated, but it can (and often does) contain implementation code and/or data members. A C# interface cannot contain any implementation code or data members - it is simply a group of method names & signatures. A C# interface is more like a COM interface than a C++ abstract class.

Share: 
 

Didn't find what you were looking for? Find more on Is a C# interface the same as a C++ abstract class? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: