I’ve had to come to terms with the fact that I’ve never been good at programming. I can’t even come up with the name for this method. I don’t know why I can’t come up with a name.
Object prototype methods all have two rules: they must be defined in the object itself and they must be public. As you can imagine, this is quite a mouthful. To put it simply, it is forbidden to use a method from the prototype for anything other than the object itself. This is to prevent you from accidentally modifying the prototype’s original method. If you do so, then the object’s method will no longer work.
The only other reason why this method is allowed to work is because it will allow you to add a new object to the class. This means you probably have to modify the methods before you can access the prototype methods. So this is a completely new thing.
Well, yeah. This one is pretty straightforward. It’s a method that allows you to access the prototype’s methods from inside it (but you have to do it from the prototype).
I’m not sure what to make of this. I can understand why it’s allowed because it won’t break anything but what am I supposed to do with that. It doesn’t seem like a very useful thing to be allowing it. For one, it’s basically saying that you can create prototypes for any objects by accessing them through the prototype method. That’s not what I understand this for.
Object prototyping was a big deal for C++ in the early days of the language. It was a way for the C++ compiler to inspect the internal structure of objects without actually having to do it. The benefit of using object-oriented code was that it made code that was more modular and easier to read in the first place, and so this was considered a big benefit. If you have one object, it’s easy to define methods for it.
Object-oriented programming means that its possible to add methods to an object at any place in the code, and that it is easy to remove methods. In other words, object-oriented code is more flexible.
There are two ways to create methods in Objective-C. One way is the “object method”, and the other is the “method”. The object method is just an “override” of the object’s methods, and the method is just any method.
Object-oriented programming is a form of OOP, but it’s a special kind of OOP. It was coined by Apple in the 90’s and is now commonly used in programming languages. In Objective C we have the “object method.” Objective-C defines methods in terms of properties on objects and it is used to create object-oriented classes. This means that we can add methods to an object, but we cannot remove methods.
This is why it is important to know what the object method is and why it is used. It is a special kind of method that is used to override the object methods. One reason is that it is more efficient to know what the object methods are because we then can figure out which object method to override.