Can we have a private constructor ?

Answer Posted / arpitha

no, its of no use having a private constructor,,, bcoz
declaring constructor as private makes it blocked.

Is This Answer Correct ?    6 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is different between oops and c++

1999


How to use CMutex, CSemaphore in VC++ MFC

4326


Plese get me a perfect C++ program for railway/airway reservation with all details.

3427


What is the purpose of polymorphism?

675


what is the 3 types of system development life cycle

2431






What are oops functions?

583


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2569


What is object-oriented programming? Webopedia definition

717


What is polymorphism what is it for and how is it used?

572


can we make game by using c

3415


Can you name some types of inheritance?

637


What does and I oop mean in text?

620


Prepare me a program for the animation of train

1994


Is data hiding and abstraction same?

567


Do you know about multiple inheritance?

637