Sunday, September 21, 2008

C++ Concepts

Abstract classes v.s Interfaces
1. Abstract classes CANNOT be instantiated and only instances of concrete subclasses can be created.
2. An interface has no data members and no method definitions (only pure virtual functions)


C++ v.s Java v.s C#
1. C++ has no garbage collection and supports multiple inheritance
2. Default C++ & C# methods are nonvirtual, Nonstatic Java methods are virtual

No comments: