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

Why is polymorphism needed?

796


hi all..i want to know oops concepts clearly can any1 explain??

1893


What is difference between data abstraction and encapsulation?

842


What are functions in oop?

789


What is polymorphism in oops with example?

772


What is ambiguity in inheritance?

852


What is the diamond problem in inheritance?

819


What is difference between multiple inheritance and multilevel inheritance?

881


Write a program to reverse a string using recursive function?

2029


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1991


What is the difference between a constructor and a destructor?

855


What is class and example?

820


What is abstraction and encapsulation?

777


How long to learn object oriented programming?

819


what is different between oops and c++

2195