Difference between a constructor and a method November 19, 2006
Posted by :) in JAVA.trackback
A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.


the terminology is quite easy to understand.i make sure to approach this site whenever i come across a problem.
i want to know about interfaces. how interfaces are different from abstract classes? please explain me
thank you