Session 18 Swift IOS Code

 IOS Mobile Application Development        

Session 18 Swift IOS Code

///class cricket
{
  func print1()
  {
    print("Hi, Welcome to Swift Programming with fahad hussaincs function 1 cricket")
  }
   func print1(aa: Int)
  {
    print("Hi, Welcome to Swift Programming with fahad hussaincs function 2: \(aa)")
  }
}

//let a = cricket()
//a.print1(aa:12)

class tennis: cricket
{
 override func print1()
  {
    print("Hi, Welcome to Swift Programming with fahad hussaincs function 1: tennis")
  }

}
let a = tennis()
a.print1()

1 comment:

Fell free to write your query in comment. Your Comments will be fully encouraged.