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 abstrac class?where is it use?

Answer Posted / gp

Class which cannot be initiated is an abstract class.
You can make a class abstract by declaring a pure virtual method inside the class. For example:

class base
{
void func()=0;
};

void main()
{
base b;
}

Now you cannot instantiate base class.
The class which inherits this base class will also become abstract unless you define a body of the func() method in inherited class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you answer polymorphism?

1111


How to use CMutex, CSemaphore in VC++ MFC

4836


What are the important components of cohesion?

1079


Is enum a class?

1116


What is class and object with example?

1225


Whats is abstraction in oops?

1143


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2442


What are the 3 principles of oop?

1172


Can private class be inherited?

1226


Explain the concepts involved in Object Oriented programming.

1317


What are the 4 main oop principles?

1271


Can we have inheritance without polymorphism?

1079


What is inheritance write a program to show use of inheritance?

1204


What is coupling in oops?

1223


hi all..i want to know oops concepts clearly can any1 explain??

2178