class Marks {
var physics = 0
func checkEligibility(physics: Int) {
// using self property
if (self.physics < physics) {
print("Not Eligible for admission")
}
else {
print("Eligible for admission")
}
}
}
var student1 = Marks()
student1.physics = 28
student1.checkEligibility(physics: 50)