classStudent {// Propertiesvar name: Stringvar major: Stringvar age: Int// Initializerinit(name: String, major: String, age: Int) { self.name = name self.major = major self.age = age }}let vin =Student(name:"Vin", major:"Info Sci", age:20)vin.major // Prints "Info Sci"classEngineeringStudent:Student {// Inherits properties from the superclass, but you can// define other properties specific to this classvar doesShower: Bool// Initializerinit(name: String, major: String, age: Int, doesShower: Bool) { self.doesShower = doesShower // Initialize properties specific to this class super.init(name: name, major: major, age: age)// Call superclass' initializer }}let archit =EngineeringStudent(name:"Archit", major:"CS", age:20, doesShower:false)archit.name // Goodarchit.doesShower // Goodvin.doesShower // Does not work