Computer Science, asked by chandu5971, 1 year ago

what is normal function and constructive function ​

Answers

Answered by shruti720
2

constructor does'n have a return type, the name of constructor should be the same as the class name and functions can have return type and the name is user defined. constructor initiate the object and function is a method work for initiated object. functions have return type but constructors dont have return type.

Answered by Anonymous
3

Heya Mate......

Here is your answer......

__________________________________

1) Function has to be invoked. Constructor automatically gets invoked.

2) Function has return type. Constructor has no return type.

3) Function is method work for initiated object. Constructor initiates the object.

Thanks.....

I hope it helps.....

Similar questions