Give a difference between a constructor and a method.
5 Likes
Constructor has the same name as class name whereas function should have a different name than class name.
Answered By
4 Likes
If the name of the class is "Yellow", what can be the possible name for its constructors?