Yes, It is allowed to define a method with the same name as that of a class . There is no compile-time or runtime error will occur.
Yes, It is allowed to define a method with the same name as that of a class . There is no compile-time or runtime error will occur.