answersLogoWhite

0


Best Answer

They differ insofar as C does not use object-oriented programming at all -- there are no classes (only structures), therefore there was nothing to abstract. C++ (which literally means 'the successor to C') is an extension of C that primarily adds object-orientated support to the language. Everything you can do in C you can also do in C++, but with the added benefits of OOP you can do a whole lot more, more easily, including the creation of abstract data types.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do C and C plus plus differ in terms of data abstraction and classes and structs?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do electrogravimetric and coulometric methods differ from potentiometric methods in terms of current?

work it out you lazy human


What is a super class in terms of object oriented programming?

A superclass, also referred to as a parent class, is a class what which other classes are derived from. These derived classes are known as either subclasses or child classes.


What is abstraction in visual basic?

The basic idea of data abstraction is to structure the programs that are to use compound data objects so that they operate on ``abstract data.'' That is, our programs should use data in such a way as to make no assumptions about the data that are not strictly necessary for performing the task at hand. At the same time, a ``concrete'' data representation is defined independent of the programs that use the data. The interface between these two parts of our system will be a set of procedures, called selectorsand constructors, that implement the abstract data in terms of the concrete representation. To illustrate this technique, we will consider how to design a set of procedures for manipulating rational numbers.bimzz


Why does AC load differ from DC load?

The terms a.c. and d.c. stand for alternating current and direct current, respectively.


What Are the effects of over abstraction?

Over abstraction, in computer programming terms, means that you use inheritance too often in your code. If you look for any two classes which share a common function and make an abstract class for them to inherit, then you are most likely guilty of over abstraction. This is a common problem found in programmers new to the world of object-oriented programming. Much of this is a Coding Style subjective answer, but overall, I think useful: A good rule of thumb is that you are over-abstracting your problem if a class hierarchy has more than about a half-dozen ancestors before it gets to a pre-defined type. That is, if your program subclasses a library object (or the base Object) more than about 6 times, you should really re-consider how you've laid out your inheritance tree. Additionally, very, very few inheritance trees should have more than one user-defined Abstract class per branch. Take a look a the Java Class Library tree - I can't name any class which has more than 4 subclass-ings from Object.

Related questions

How are words compared on the ladder of abstraction?

Words are compared on the ladder of abstraction based on their level of generality or specificity. At the top of the ladder are abstract terms that encompass a broad range of concepts, while at the bottom are concrete, specific terms that refer to individual instances. Moving up the ladder involves moving from specific terms to more general terms, and vice versa.


What are some terms for abstraction?

Are you talking about daydreaming? - cogitation, contemplation, preoccupation, musing, reverie, pondering, reflecting, ruminating...


In terms of access to natural resources how did Japan differ from England?

In terms of access to natural resources, how did Japan differ from England?


The sociological perspective that defines classes in terms of their structural relationship to other classes and their relationship to the economic system is what?

The sociological perspective that defines classes in terms of their structural relationship to other classes and their relationship to the economic system is the ______.


Terms that name like classes are like terms are known as?

Complementary


How do senators' and representative' terms of office differ?

6 year terms and 2 year terms for the house.


How do transcaucasia republic differ in terms of religion?

The religious composition of the Transcaucasia Republics varies: Armenia is predominantly Christian (majority Apostolic Orthodox), Georgia has a mix of Christian denominations (majority Orthodox), and Azerbaijan is predominantly Muslim (majority Shia). This diversity reflects historical, cultural, and political influences on each country.


Explain the Abstraction terms in the context of object oriented programming Also explain how these concepts are implemented in C by giving an example program for each?

g terms in the context of object oriented programming


Where do concrete words sit on the ladder of abstraction?

Concrete words sit at the bottom of the ladder of abstraction. They are specific, tangible, and easily understood, representing objects or ideas that are physical or can be perceived through the senses. Examples include objects like "table" or actions like "running".


Does mountains differ from hills in terms of elevations or Slopes?

Mountains and hills differ in terms of both elevations and slopes. Mountains are typically taller with higher elevations and steeper slopes compared to hills. Hills are smaller in height with lower elevations and gentler slopes.


In biology what do a group of classes make up?

several different classes make up a phylum.


How is storage media differ from RAM in terms of volatility?

Because of bananas