Search This Blog

10 June, 2011

Difference between Procedural and object oriented language.

Difference between Procedural oriented lang and object oriented language.


When a funtion is a part of a class or a funtion is defined in a class and that class object will be made to access that class or that class's members is said to be object oriented language.
eg.:- C++ code


class aaa
{
funtion()
{
________
________set of instructions.
________


}
};
void main()
{
}




While if a funtion is not defined in a class then it will be procedural oriented language.
eg.:- C, C++


function
{
________
________
}
--------------------------------------------------------------------

No comments:

Post a Comment

Meetme@