CONSTRUCTOR: Constructors logics are executed only when object is created. Ex-1: class Myclass(): def __init__(self): print(“Hi”) def wish (self): print(“Hello”) c=Myclass() #Hi c.wish() #Hello
CONSTRUCTOR: Constructors logics are executed only when object is created. Ex-1: class Myclass(): def __init__(self): print(“Hi”) def wish (self): print(“Hello”) c=Myclass() #Hi c.wish() #Hello
CLASS: Class is a logical entity. It contains logics of the application. Class is a blueprint, for single class, We can create multiple objects. We
FLOW CONTROL STATEMENTS/CONDITIONAL STATEMENTS IF STATEMENT : If