"""
Note there are no packages in Python, a python program(file) can be used as a module in anoter Python program
"""
from package1 import *
from package2 import *
a = classA()
b = classB()
a.display()
b.displayB()
"""
Note there are no packages in Python, a python program(file) can be used as a module in anoter Python program
"""
from package2 import *
class classC(classB):
n = 20
def displayC(self):
print "Class C"
print "m = ", self.m
print "n = ", self.n
c = classC()
c.displayB()
c.displayC()
"""
there is no concept of static import. We will use normal import instead
"""
import math
class mathop:
def circle(self, r):
area = math.pi*r*r
print "The Area of circle is: ", area
obj = mathop()
obj.circle(2.3)