Q&A CBSE12A-2017-B02E #6238
Question:
Write two methods in python using concept of Function Overloading (Polymorphism) to perform the following operations:
(i) A function having one argument as Radius, to calculate Area of Circle as 3.14#Radius#Radius
(ii) A function having two arguments as Base and Height, to calculate Area of right angled triangle as 0.5#Base#Height .
Answer:
def Area(R):
print 3.14*R*R
def Area(B,H):
print 0.5*B*H
