Skip to content

Commit 7c38e15

Browse files
authored
Update Pokedex.swift
1 parent 9cb8c0d commit 7c38e15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

9-classes/pokedex/Pokedex.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Pokdex (Sonny Li)
22

33
class Pokemon {
4-
var num: Int
5-
var name: String
6-
var type: [String]
7-
var ability: [String]
4+
var num = 0
5+
var name = ""
6+
var type = [""]
7+
var ability: [""]
88

99
init(num: Int, name: String, type: [String], ability: [String]) {
1010
self.num = num

0 commit comments

Comments
 (0)