1.

Can We Define A Method With Same Name Of Class?

Answer»

Yes, it is allowed to DEFINE a METHOD with same class name. No compile time error and no runtime error is raised, but it is not RECOMMENDED as PER coding standards.

Yes, it is allowed to define a method with same class name. No compile time error and no runtime error is raised, but it is not recommended as per coding standards.



Discussion

No Comment Found