Can we override static method

Can we override static method

Answer : No we can not override static method because method declared static inside is class level operation where you don’t need object of the class to call it. Statically directly you could call method using class name. Override could be done with object and without object it can not be achieve.

Leave a Reply

Your email address will not be published. Required fields are marked *