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
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’.
Why is abstraction needed?
what is the drawback of classical methods in oops?
What are the 3 pillars of oop?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Why is oop useful?
What is and I oop mean?
What is the diamond problem in inheritance?
Why do we use polymorphism in oops?
Which type does string inherit from?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is a class and object?
Is react oop?
What is encapsulation in simple terms?
What is polymorphism and types?