Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tristan Gaebler
6,204 PointsOOP C is tuff...someone please help explain some things
I just finished Objective-c basics and it was really tough to understand. Do they explain more as the course goes on. How much should I be absorbing. What the heck is an object?
Tristan Gaebler
6,204 PointsThis is my second time reviewing the course
1 Answer
Kai Aldag
Courses Plus Student 13,560 PointsTristan,
I'll start with an object. First, in real life what is an object? it is a physical object with certain attributes and actions, or, in objective-C properties and methods. this link is a great start because it tells you that there is a public side of an object and a private side, or in objective-c, a .h for public and .m for private or implementation (which is hidden to the rest of the programme). anyways, another key thing in OOP is to encapsulate data, this means that we ideally want each section of the app to know nothing about the other section and if we need to see something we only look at the public things available to us, kind of like if we look at a watch, we don't want to see all the gears turning (like the .m file) but we simply want the current time (which is like a .h). so always think of you new object as a real, physical thing, what attributes will it have? what will it do? and what is it's purpose?
let me know if there is anything else you want help with,
Happy hacking, Kai.
notf0und
11,940 Pointsnotf0und
11,940 PointsI can't help you, as I've not learned Obj-C yet, but based off the questions you're asking, I would suggest reviewing the course a few times.