Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 681 Bytes

File metadata and controls

47 lines (35 loc) · 681 Bytes

Lecture-21 OOPs Concept in Python

OOP

Object-oriented programming

Example :

class Students:
  full_name=''
  rool_no=''

  def ShowStudent(self):
    print(self.full_name)
    print(self.roll_no)

apurva=Students()
apurva.full_name="Apurva"
apurva.roll_no='123'
apurva.ShowStudent()

avishkar=Students()
avishkar.full_name="avishkar"
avishkar.roll_no='456'
avishkar.ShowStudent()

⚙️ Output:

Apurva
123
avishkar
456

🔗 Some Useful Links

📖 References