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

What is abstraction oop?

717


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1526


what type of questions

1782


What is the real life example of polymorphism?

712


Write a program to reverse a string using recursive function?

1879






Are polymorphisms mutations?

798


What are the 3 principles of oop?

714


officer say me - i am offered to a smoking , then what can you say

1683


What is encapsulation in oops?

633


What is difference between class and object with example?

674


What is the diamond problem in inheritance?

674


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?

1492


What is destructor example?

686


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’.

1868


What is coupling in oops?

698