Constructor are looks like a method that has name and paranthesis bt nt actually method.. It is used to initialize variable , doesn't retrn anything and name same as the class.
It is invoked automatically when a class instantiated. And explicitly called by its name and number of parameters.
No comments:
Post a Comment