|
| Total Answers and Comments: 4 |
Last Update: December 07, 2008 Asked by: Ashish |
|
| | |
|
Submitted by: Prasad2008 If the class designer has not provided any constructor within the class, but we are trying to create an object of that class without passing any argument , then compiler will provide a default zero argument constructor. But in the same scenario, if we are creating an object and trying to pass argument(s) to the object at the time of its creation, in that case compiler will not provide any one-argument, two-argument constructors etc. It will throw an error.
Above answer was rated as good by the following members: yzesong | Go To Top
|