Do we have private destructors?

Answer Posted / thuang

In replay to Vishwa,

for empty class, compiler will supply a default constructor
and a destructor for us, their access modifiers were public.

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we define function inside main in c++?

556


What is while loops?

619


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3064


What are references in c++? What is a local reference?

576


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

636






Are php strings immutable?

565


Explain one method to process an entire string as one unit?

936


Explain some examples of operator overloading?

647


Explain the advantages of using friend classes.

594


What is unary operator? List out the different operators involved in the unary operator.

590


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

606


If all is successful, what should main return a) 0 b) 1 c) void

559


Write a program to show polymorphism in C++?

635


What is c++ iterator?

647


Which operations are permitted on pointers?

570