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()
mention the details with every example
ReplyDelete