Why this cant acces main function

why can’t (this.primary ) keyword can be used in the main function

@Syed-Siddiqui-2497215583854102 See bro, main is a static method, static belongs to a class rather than belonging to a single object. But this refers to current object that is why you cannot use this in static methods because they are not limited to an instance.

If your doubt is clear, mark it resolved and bro study more about oops!
Happy coding bro!