Q. How can you prevent a method from being overridden in a subclass?

आप किसी विधि को उपवर्ग में ओवरराइड होने से कैसे रोक सकते हैं?

A
By using @staticmethod
B
By using @final
C
By using @classmethod
D
By defining it as private

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment