Accenture Interview Question

What is a class and object in Python? Differentiate between a class and an object. How do you create a class in Python? What is the __init__ method in Python classes used for? Explain the concept of inheritance in Python with an example. What is method overriding in Python? How do you achieve method overriding in Python? Explain the concept of encapsulation and how it is implemented in Python. What is polymorphism in Python? Provide an example. What is the difference between class variables and instance variables in Python? Explain the concept of method overloading and its implementation in Python. How do you create a constructor in Python? What is the purpose of self in Python classes?