class Student:
    name = "cpandu"
s1 = Student()
print(s1.name)

Constructers

class Student:
    name = "cpandu"
    def __init__(self)  # this is a constructer
      print("hello")
      
s1 = Student()
print(s1.name)

Attributes

  1. Class Attributes
  2. object Attributes

Instance or object Attributes are unique for different object attributes (we define them as self. )

methods