what is abstract class ?
when is used in real time ?
give a exp

Answer Posted / pradeep

An Abstract Class is one in which the member function(s) at
the Base(Parent) Class are left undefined, but declared.
It's upto the Derived(child(ren)) Classes to Implement the
Functions declared in Base...

The most real time example of abstract class and interface
is bulding a house
1)concrete methods are explained with completed house.
2)abstract classes are explained with completed house but a
little bit of work left
3)interfaces are explained with taking a building plan

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1652


Why is oop useful?

602


what is the drawback of classical methods in oops?

2918


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

2164


What are objects in oop?

608






Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1655


Give two or more real cenario of virtual function and vertual object

1851


i got a backdoor offer in process global,Bangalore..Can i work with it?

2324


What does enum stand for?

610


what are the ways in which a constructors can be called?

1581


What is abstract class in oop?

529


What are different oops concepts?

572


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

24192


What is polymorphism explain its types?

677


what type of question are asked in thoughtworks pair programming round ?

1758