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

Can we create object of class with private constructor?

Answer Posted / rahul dhangar

class Rahul
{
private:
int a,b,c;
Rahul()
{ cout<<"enter the no";
cin>>a>>b;
c=a+b;
cout<<c;

}
};
void main()
{
Rahul();
getch();


}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have inheritance without polymorphism?

1016


Write a program to reverse a string using recursive function?

2325


Why do we use polymorphism in oops?

1022


Can enum be null?

995


Why is destructor used?

1007


What are functions in oop?

1037


What is the use of oops?

1038


What is overriding in oop?

1029


What is methods in oop?

959


What do you mean by overloading?

1059


What is multilevel inheritance in oop?

1016


What is the full form of oops?

1166


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

2089


write a program that takes input in digits and display the result in words from 1 to 1000

2401


what is the sylabus for priliminaries?

2170