When will you define a method as static? Ans. When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static. - Study24x7
Social learning Network
12 Oct 2023 09:56 AM study24x7 study24x7

When will you define a method as static? Ans. When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles