class Student:
def init(self,Name,Rollno):
self.__name=Name
self.__rollno=Rollno
#Setter Method
def set_name(self,x):
print(“Student Name is”,Student_Name)
self.__name=x
pass
#Getter Method
def get_name(self):
print(“Student Name is”,Student_Name)
return self.__name
pass
#Setter Method
def set_rollno(self,x):
print(“Student Rollno is”,Roll_no)
self.__rollno=x
pass
#Getter Method
def get_rollno(self):
print(“Student Rollno is”,Roll_no)
return self.__rollno
pass
Student_Name.set_name()
print(Student_Name.get_name())
Student_Rollno.set_rollno()
print(Student_Rollno.get_rollno())