Question: Object Identity in OOP: Choose the correct option and justify your answer. class Employee: def _ _ init _ _ ( self , name )
Object Identity in OOP: Choose the correct option and justify your answer.
class Employee:
def initself name:
self.name name
A EmployeeGuido Van Rossum
A EmployeeGuido Van Rossum
Which of the following suits the best?
A idA and idA will have different values.
B idA and idA will have the same values.
C None of the above.
D Two objects with the same values of the attribute cannot be created
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
