English

Which of the following method is automatically executed when an object is created?

Advertisements

Question

Which of the following method is automatically executed when an object is created?

Options

  • __object__( )

  • __del__( )

  • __func__( )

  • __init__( )

MCQ
Advertisements

Solution

__init__( )

shaalaa.com
Creating Objects
  Is there an error in this question or solution?
Chapter 10: Python Classes and objects - Evaluation [Page 186]
Advertisements
Share
Notifications



      Forgot password?
Use app×