What is differance between Abstract and Interface

Answer Posted / jasbir singh

An abstract class is a class with at least one function
without definitions.

An Interface is a class which only contains function
declarations, all the functions are specifically and
separately defined later. And you can't create objects of
these classes.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three parts of a simple empty class?

1460


What is an example of genetic polymorphism?

649


Can we define a class within the interface?

553


How do you define a class in oop?

628


What are different oops concepts?

577






What is difference between abstraction and encapsulation?

592


Where You Can Use Interface in your Project

1425


What is polymorphism what is it for and how is it used?

574


What is inheritance write a program to show use of inheritance?

611


What is encapsulation example?

547


How do you answer polymorphism?

577


What is the types of inheritance?

602


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403


What is the real life example of polymorphism?

605