• Choose the correct answer

    Which of the following method is used as destructor?


    - (a) _init_( )

    - (b) _dest_ ( )

    - (c) _rem_( )

    - (d) _del_( )



2 Answers


  • Correct Answer:

    (d) _del_( )

    Answered on 29/10/2020 at 02:40PM by Thamizh

Download our mobile app - The Learning App by EduDeck

  • Correct Answer:

    d) _del_()

    The __del__() method is a known as a destructor method in Python. It is called when all references to the object have been deleted.

    Syntax

    def __del__(self):
    # body of destructor


    Video Explanation


    Answered on 24/12/2020 at 01:21PM by Nirmal Raj

Share




Latest answers

Answered by Sangeedha

Brasilia Declaration

Global conference

Read More

Answered by Sangeedha

Always keep ___________while driving.

To the left

Read More