Answer Posted / munendra kumar
A constructor that has no arguments.
If you don't code one, the compiler provides one if there are no other constructors. If you are going to instantiate an array of objects of the class, the class must have a default constructor.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we define function inside main in c++?
Comment on c++ standard exceptions?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Explain how to initialize a const member data.
What is scope operator in c++?
What is the difference between multiple and multilevel inheritance in c++?
Explain one-definition rule (odr).
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
What is a syntax in c++?
Is eclipse good for c++?
What are the operators in c++?
How can we read/write Structures from/to data files?
What are the advantages of early binding?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
What is a storage class?