Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Grade {
- let name: String
- var marks: Int
- var CGPA: String
- var grade: String
- init(name: String, marks: Int, CGPA: String, grade: String){
- self.name = name
- self.marks = marks
- self.CGPA = CGPA
- self.grade = grade
- }
- func Result(){
- marks -=0
- if marks >= 80 {
- print("Your")
- }
- }
- class Student: Grade {
- let level: String
- var CreditValue: Int
- init(level: String, CreditValue: Int, name: String, marks: Int, CGPA: String,grade: String){
- self.level = level
- self.CreditValue = CreditValue
- super.init(name:name, marks:marks, CGPA:CGPA, grade:grade)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement