Difference Between Interface and Abstract class in cpp !

In c++ Interface is an entity which have no implementation only have function signature or function definition but without function body. While class can have default Implementation, It can have one or more abstract method means method with signature only or method definition with out function body but it can have function definition with function body which Interface doesn’t have.
In Interface there is no Access specifier everything is public, while in Abstract class Access specifier is required.

80 total views, 5 views today

Posted in

Leave a Reply