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 have a private constructor ?

Answers were Sorted based on User's Feedback



Can we have a private constructor ?..

Answer / namrata ahuja

no. constructors are always declared publicly. they are used
to initialize data members of a class. they are
automatically invoked by a class object declaration so if it
is private it cannot be invoked.

Is This Answer Correct ?    6 Yes 39 No

Can we have a private constructor ?..

Answer / ravi`

no,
we can not make a constructor private , if we make a
constructor private its method cannot access in main method .

Is This Answer Correct ?    17 Yes 136 No

Post New Answer

More OOPS Interview Questions

what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


What are the advantanges of modularity

2 Answers  


What is object in oop?

0 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


What are the three parts of a simple empty class?

0 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


What is the highest level of cohesion?

0 Answers  


what is object slicing

3 Answers   TCS,


143.what is oops principles?

10 Answers  


Why many objects can working together? How objects working togetherM I want to see example code.

2 Answers  


why the argument is passed by reference to a copy constructor?example?

2 Answers  


What makes a language oop?

0 Answers  


Categories