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 is difference between polymorphism and inheritance?

611


What are the 4 pillars of oop?

661


program for insertion ,deletion,sorting in double link list

2274


write a programe to calculate the simple intrest and compund intrest using by function overlading

1659


What is oops with example?

560






How Do you Code Composition and Aggregation in C++ ?

24185


What is polymorphism in oop example?

507


What is polymorphism and its types?

587


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2056


Write a program to sort the number with different sorts in one program ??

1910


What is an advantage of polymorphism?

585


What is the difference between procedural programming and oops?

546


What is static in oop?

585


What does and I oop mean?

610


What are the data types in oop?

597