• Choose the correct answer

    Which of the following class declaration is correct?


    - (a) class class_name

    - (b) class class_name< >

    - (c) class class_name:

    - (d) class class_name[ ]



2 Answers


  • Correct Answer:

    (c) class class_name:

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

Download our mobile app - The Learning App by EduDeck

  • Correct Answer:

    c) class class_name:

    A Class is like an object constructor.
    To create a class, use the keyword class.

    Ex:

    class MyClass:
    x = 5

    print(MyClass)


    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