Question: def message ( self ) : # . . . . . . . . . . . . . . . . . .

def message(self): #.............................................................1
print ("Welcome")
class Emp:
def_init_(self, name, sal, comm, *args,?*** kwargs):#............. Line 2
Total_Sal=sal+comm
print (name)
print(Total_Sal)
class Designation:
def_init_(self, des, *args,?*** kwargs) :#..................................5
Do you need to change anything in the code to get the following output?
If yes Which line you need to modify to get the following output? What
you will right?
Output:Welcome
AA
3040
us
Child class
**Note you don't have to write this code. Just see the code carefully and
answer this question.
 def message(self): #.............................................................1 print ("Welcome") class Emp: def_init_(self, name, sal, comm,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!