What will be the output of the following Apple Swift code?
enum Abc [
case Mark
case John
case Andrew
case Lucy
case June
case Kate
]
enum Class [
case First. Second. Third. Fourth. Fifth. Sixth. Seventh
1
var n1 = Abc.Lucy
n1 = .John
print(n1)
let sp = Class.Sixth
sp = .Third
switch sp {
case .Third:
print("Perrnitted to the cricket ground")
default:
print("Not Permitted to the cricket ground")
]
Correct Answer:
Code will give compilation error.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions