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

what type of questions

2069


What are constructors in oop?

1090


What is the highest level of cohesion?

991


What do you mean by Encapsulation?

1031


What is interface in oop?

1075


What is static in oop?

1028


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

2044


how to get the oracle certification? send me the answer

2105


What causes polymorphism?

1071


How is polymorphism achieved?

1003


Write a program to reverse a string using recursive function?

2278


What is difference between oop and pop?

1107


Where is pseudocode used?

1034


What is an advantage of polymorphism?

1034


What is a class in oop?

1049