A procedure can be thought of as a task to be done. You can switch on your electric light without knowing anything about the electrons moving around, or whatever makes electricity flow. You just have to know that if you flip the switch the light must come on, or if the light is on when you flip it, it should go off. If it doesn’t there’s an error somewhere. In just the same way you only have to know what the procedure is going to do, to use it. We call that principle “information hiding” or “encapsulation”.
A procedure can be thought of as a task to be done. You can switch on your electric light without knowing anything about the electrons moving around, or whatever makes electricity flow. You just have to know that if you flip the switch the light must come on, or if the light is on when you flip it, it should go off. If it doesn’t there’s an error somewhere. In just the same way you only have to know what the procedure is going to do, to use it. We call that principle “information hiding” or “encapsulation”.
A procedure can be thought of as a task to be done. You can switch on your electric light without knowing anything about the electrons moving around, or whatever makes electricity flow. You just have to know that if you flip the switch the light must come on, or if the light is on when you flip it, it should go off. If it doesn’t there’s an error somewhere. In just the same way you only have to know what the procedure is going to do, to use it. We call that principle “information hiding” or “encapsulation”.

Leave a Reply