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
What is abstraction oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< what type of questions What is the real life example of polymorphism? Write a program to reverse a string using recursive function? Are polymorphisms mutations? What are the 3 principles of oop? officer say me - i
am offered to a
smoking , then what
can you say What is encapsulation in oops? What is difference between class and object with example? What is the diamond problem in inheritance? 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?
What is destructor example? 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’. What is coupling in oops?