Posts

Showing posts with the label Initializers

Chris Ching Course Part 3 (Properties, Initializers, Arrays and Dictionaries)

So this may be the last of these 'consolidation' Chris Ching courses that I'll use. It's been good fun but at the same time I know I am beyond this level of understanding. It's more of a confidence booster really! It's a good job that I like spending time coding and going over this stuff! OK here we go! Start time - 19:13 Properties All fine so far. Chris says that properties are variables inside the class. Well, they are. But they can also be constants! Computed properties - I need to go over this, good! class BlogInfo {     var blogTitle: String     var blogBody: String     var author: String ?     var posts: Int          var fullTitle: String {         if author != nil {             return blogTitle + " by " + author !         } else {             return "Author is unknown" ...