Date

Teresa Lopes on the Net

–interesting ideas to share–
Breast Cancer Ribbon

Archive for October, 2009

Subroutines

posted by:

Subroutine can be thought of as miniature programs. A subroutine has a name attributed with it, much like a variable does. Unlike a variable, a subroutine doesn’t hold data. Instead it holds code. When the code in a subroutine is executed, the subroutine is said to be “called”. ‘Call’ is use in calling subroutines. Some subroutines are called automatically when certain actions are performed.

Subroutines are used to eliminate redundancy. Consider the complicated programs such as Point of Sale System, Inventory System and other system that could be created using Visual Basic. Those systems need a manageable and lesser code that could be easy to debug and decode as needed. If subroutines are not use, all of the repeated code will be type in every form in the system. Debugging of those codes will be difficult to track down. Through the subroutines, code will be written once and can be called. In this case, the programmer can easily trace the errors and ready for debugging and making the entire program easier and manageable.

Swimming in Oil Flames

posted by:

If the ship is surrounded by burning oil, your shoes and a Co2 preserver may be kept on but uninflated. When you jump, take a very deep breath cove your nose and mouth with one hand and your eyes with the other hand. Keep underwater as long as possible. When it necessary to come up for another breath, extend your arms above the surface. At this time make a wide sweeping movement with your hands and arms across the surface to splash the water and drive away the flames. As you pop above the surface, try to turn your back to the wind before you take a breath. Submerge again feet first, repeating the procedure until clear of the burning oil.

When going into oil which is not burning, it may be better to have your preserver and lay it on the water to use as a raft. Keep your face out of the water as much as possible. If the oil gets into your system, you will become nauseated.

Object-Oriented Terminologies

posted by:

OOP is an acronym for object-oriented programming which simply means that you are using an object-oriented language to create a program that contains one or more objects. On the other hand, OOD or object –oriented design is a design methodology used to plan object-oriented programs. OOD divides a problem into one or more objects. Anything that can be seen or touch is referred to as object. Every object has attributes and behaviours. The characteristics that describe the object are called attributes. It is also known as data or properties. The operations or actions that the object can either perform or have performed on it are called behaviours.

Another term in OOP is class. A class is a pattern or blueprint for creating an object. This contains all of the attributes and behaviour that describe the object. The object you create from a class is known as the instance of the class. Always remember that a class is not an object but an instance of the class is an object.