QUESTION 1
A(n) ___________________ method allows for retrieving information about an object's attributes
QUESTION 2
A(n) __________________ is template code that defines items of a new data type by specifying its attributes and behavior
QUESTION 3
A(n) ___________________ is a type of class that defines (but does not implement itself) what method we want to require classes that are derived from it to implement.
QUESTION 4
In the following statement:
EL3 = EL1 + EL2
where EL1, EL2 and EL3 represent English Length objects
EL1 is considered the be the _______________ object being passed into the overloaded + operator, where as EL2 is passed explicitly.
QUESTION 5
1. getattr()
Explanation: This method is used to access the attributes of object.
2. class
Explanation: Class is template code where each object has behaviour and attributes of as defined in class
3.Abstract class
Explanation: Abstract classes are not self implementable class which defines behaviour of class derived from it
4. Themselves (self)
Explanation: EL1 is initialized to self parameter and EL2 is passed explicitily
5. Object
Explanation: Every class is derived from OBJECT class in python
Get Answers For Free
Most questions answered within 1 hours.