By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Main differences between c and object orientation?

P: 40
c:
1.It focuses on methods rather than data.

oops:
1.It focuses on data and methods.
2.inheritance
3.polymerization.
4.Abstraction.
5.encapsulation.


Besides these what are the diffrences.
Jun 8 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 10K+
P: 11,448
c:
1.It focuses on methods rather than data.

oops:
1.It focuses on data and methods.
2.inheritance
3.polymerization.
4.Abstraction.
5.encapsulation.


Besides these what are the diffrences.
Make number three: polymorphism; polymerization had something to do with
glueing strings of carbon together to make plastics etc.

You've got about all of them; if you understand all of them you're in business.

kind regards,

Jos
Jun 8 '07 #2

100+
P: 208
c:
1.It focuses on methods rather than data.

oops:
1.It focuses on data and methods.
2.inheritance
3.polymerization.
4.Abstraction.
5.encapsulation.


Besides these what are the diffrences.
Technically the topic should be Procedural Programming vs. Object Oriented Programming (or it would be C vs Java)

Procedural
*
- Procedural Approach Data Structures can be represented as a network of associated structures, referring to one another.
- Procedures can be represented as a network of routines which call one another, i.e., "call tree"

OOP*
- Object Oriented Approach Collection of discrete objects that incorporate data structures and behavior.
- Each data structure has, combined with it, the procedures which apply to that data structure.
- Contrasts with conventional programming in which data structures and behavior are only loosely connected
- These entities, called objects, can be associated to one another in one network, rather than two.

*Taken from here
Jun 8 '07 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
Actually, there's no difference between C and object-orientation because they are two completely different things.

C is a programming language.

Object-orientation is a programming technique.

That means you can have an object-oriented C program. Heck, the compiler generates machine instructions so you really are executing object-oriented binary code.

All C++ does is have the compiler generate the object-oriented code rather than in C where you would have to write it all yourself.
Jun 8 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.