How do you differentiate a constructor from a ordinary function?

Questions by ykbharat   answers by ykbharat

Showing Answers 1 - 6 of 6 Answers

Ashwani Kabra

  • Mar 21st, 2007
 

There are three differences.
1. In Java constructor has its class name. that can be unique. In .NET it has "NEW" by name.

2.It does not have any return type.

3. It cannot be subclass.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions