Question: what is the difference between constructor and function?
Answer: 2. Function have return type but constructor don't have return type not even void. 3. Constructor calls once at the time of object creation but funcation can be called with object and without object(static funcation) many times.