Wanted to understand what would be the output of this code:
class BaseClass:
def __init__(self):
self.a = "GoForGyan"
self.__c = "goforgyan"
def display(self):
print(self.a,self.__c)
class Derived(BaseClass):
def __init__(self):
BaseClass.__init__(self)
print(self.__c)
obj1 = BaseClass()
obj1.display()
Thank You!