Procedual & Modular Programming

Procedure-orientated programming is a type of programming where a structured method of creating programs is used. With procedure-orientated programming, a problem is broken up into parts and each part is then broken up into further parts. All these parts are known as procedures. They are separate but work together when needed. A main program centrally controls them all.

Some procedure-orientated languages are COBOL, FORTRAN and C.

 

Object-orientated programming is a type of programming where data types representing data structures are defined by the programmer as well as their properties and the things that can be done with them. With object-orientated programming, programmers can also create relationships between data structures and create new data types based on existing ones by having one data type inherit characteristics from another one.

In object-orientated programming (OOP), data types defined by the programmer are called classes (templates for real world objects to be used in a program). For example, a programmer can create a data type that represents a car – a car class. This class can contain the properties of a car (colour, model, year, etc.) and functions that specify what the car does (drive, reverse, stop, etc.)

Some object-orientated languages include C++, Java and PHP.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s