Posts

Showing posts with the label initialisation

Angela Yu Xcode 12 Course - Part 11 (lectures 132 to 143)

Image
So a poor effort recently! Life gets in the way...Shouldn't feel too bad though as I did a marathon session six days ago (2 hours worth) so another hour today should still help me to meet my three hours per week target. Just writing that makes me feel so proud - at one point I made a vow to try to get an hour a week. The fact that three hours doesn't seem like that much is something to be very pleased about. Anyway, the next part of Angela's course is all Intermediate Swift. Stuff that I will pay attention to but it should be familiar. It dovetails in with what I've been doing for the past few months, well it should at least. I doubt it'll be as technical as Bob's course! Anyway time to go for it! Start Time - 17:34 Classes Right so command line tool file created. I don't actually remember this AT ALL! So glad I am going over it! This sounds exciting - creating a new class and seeing the purpose for it. Cool.  It doesn't like calling...

Classes and Structs - interim Practice!

So I was all ready to move onto the next course but really feel the need to crack the whole initialiser (which is one of the most difficult words to type by the way!) thing first. It makes more sense to have a little more practice with this! So for the first time since going back to Treehouse, I'm veering away from it - albeit briefly... First stop - the Apple Developer Guidance Structures  and  classes  are general-purpose, flexible constructs that become the building blocks of your program’s code. You define properties and methods to add functionality to your structures and classes using the same syntax you use to define constants, variables, and functions. Straight from the text! All of that makes sense. Pasan also referred to them as 'Objects'. Ah hang on, that's an instance of a construct. Again, from the text, here is what both Structures and Classes can do: Define properties to store values Define methods to provide functionality Define subscripts t...