CSC/ECE 517 Fall 2009/wiki2 6 ee: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Programing Paradigms== | ==Programing Paradigms== | ||
Before delving into Hybrid Languages, here is a quick review of the paradigms we will be discussing. | |||
===Object Oriented Programming=== | ===Object Oriented Programming=== | ||
In Object Oriented Programming, code is grouped together into collections called Objects. Objects keep track of data and contain methods relevant to the data of the object. An object is described by a class. In order for an object to be used, it must be instantiated from a class. Objects can utilize other objects to help represent their data in meaningful ways (ie a school object can have many student objects).[http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx#OOP] | |||
===Procedural Programming=== | ===Procedural Programming=== | ||
With procedural programming, operations are listed one after another in the order they are to be executed. Procedural programming also incorporates the notion of functions, which are chucks of code that can be called repeatedly, usually to accomplish one specific task. Functions take in data to be processed as arguments and output the result of the computation. However, the output of a function can vary greatly, depending on the state of the program at any given moment.[http://knol.google.com/k/chris/procedural-programming/3qdf5q2hz62mx/93#] | |||
===Functional Programming=== | ===Functional Programming=== | ||
==Hybrid Object Oriented Programming Languages== | ==Hybrid Object Oriented Programming Languages== |
Revision as of 01:06, 10 October 2009
Hybrid Object Oriented Programing Languages
Hybrid Object Oriented Programming Languages are object oriented languages that also include one or more additional programing paradigms. Commonly, hybrid object oriented languages include procedural and functional programing features, in addition to being object oriented. Having multiple paradigms embraced in one language adds flexibility to the developer, letting them leverage the most appropriate programing methods, without having to switch languages.
Programing Paradigms
Before delving into Hybrid Languages, here is a quick review of the paradigms we will be discussing.
Object Oriented Programming
In Object Oriented Programming, code is grouped together into collections called Objects. Objects keep track of data and contain methods relevant to the data of the object. An object is described by a class. In order for an object to be used, it must be instantiated from a class. Objects can utilize other objects to help represent their data in meaningful ways (ie a school object can have many student objects).[1]
Procedural Programming
With procedural programming, operations are listed one after another in the order they are to be executed. Procedural programming also incorporates the notion of functions, which are chucks of code that can be called repeatedly, usually to accomplish one specific task. Functions take in data to be processed as arguments and output the result of the computation. However, the output of a function can vary greatly, depending on the state of the program at any given moment.[2]