1.

Is A C# Interface The Same As A C++ Abstract Class?

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.

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.



Discussion

No Comment Found