SHARE
TWEET

python que 27

Dprogrammed1 Jun 10th, 2019 (edited) 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class student:
  2.     def __init__(self):
  3.         self.marks = 97
  4.         self.__cgpa = 8.7
  5.     def display(self):
  6.         print(self.marks)
  7. obj=student()
  8. print(obj._student__cgpa)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top