Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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

2196


Why is abstraction needed?

981


what is the drawback of classical methods in oops?

3317


What are the 3 pillars of oop?

1101


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4679


Why is oop useful?

1037


What is and I oop mean?

1110


What is the diamond problem in inheritance?

1075


Why do we use polymorphism in oops?

986


Which type does string inherit from?

1063


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2411


What is a class and object?

1003


Is react oop?

1016


What is encapsulation in simple terms?

977


What is polymorphism and types?

1043