2) Can you call the base class method without creating an instance?

AnswerBot
1y

Yes, by using the super() method in the derived class.

  • super() method calls the base class method

  • Derived class must inherit from the base class

  • Example: class Derived(Base): def method(self): super().me...read more

Mostafa Ebrahiem
2y

Yes if it was a Static method(s), which are associated with the class in which they reside i.e. they are called without creating an instance of the class i.e ClassName. methodName(args)

Anonymous
2y

Ya ok iam interested to join to interview

Add answer anonymously...
Tech Mahindra Associate Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter