473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Main differences between c and object orientation?

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
3 2082
JosAH
11,448 Expert 8TB
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
Silent1Mezzo
208 100+
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
9,208 Expert Mod 8TB
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

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

Similar topics

1
by: Bruce Adams | last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically, it prints line charts of plant process information nightly. The code is a mix of API calls and Printer methods. I am...
1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
4
by: tvmaly | last post by:
Does anyone know if it is possible to determine if an image is horizontal/vertical and color or black & white using the python image library? I have been searching this news group and the...
65
by: Roger Smythe | last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts such that these component parts represent higher levels of conceptual abstraction, and are...
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
6
by: gustav04 | last post by:
hi all i have a question: what is the difference between a c-function and an c++ class method (both do exactly the same thing). lets say, i have a function called print2std() and a class...
3
by: Rick Collard | last post by:
I have been experimenting with the new Printer object in Access 2002 and discovered some unexpected database bloat. Simply assigning the same value to a property of a report's Printer object will...
11
by: Vishal Naidu | last post by:
i m a college student in my second year..... my queston is.. is it really possible to write object oriented code in C ? and if yes how do we achieve abstration, polymorhism , hierarchy etc. in C
5
by: Zadkin | last post by:
Does anyone know, if it's possible to set the orientation of the tabpagebuttons to horizontal instead of vertical when the alignment property of my tabcontrol is set to left or right? Thanks in...
0
by: CoreyReynolds | last post by:
Hey all, I have a piece of code that dumps a bunch of data into a spreadsheet. Also rearranges it into a pivot table and then graphs the pivot table as well so my boss can get a clear view of the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.