answersLogoWhite

0

C is not an object-oriented programming language and therefore has no concept of abstract classes.

In C++, however, an abstract class is a base class that declares one or more pure-virtual functions. An abstract base class is also known as an abstract data type (ADT). Pure-virtual functions differ from virtual functions in that virtual functions are expected to be overridden (but needn't be) while a pure-virtual function must be overridden (but needn't be implemented by the ADT). Once overridden by a derived class, the function reverts to being a virtual function with respect to further derivatives. However, only classes that provide or inherit a complete implementation of the pure-virtual interface can be instantiated in their own right; those that do not are themselves abstract data types.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

Can abstraction encapsulation be achieved in C program if yes explain?

abstraction and encapsulation is one of the concepts of OOPs and C is not an OOP [Object Oriented Programming language] obviously abst & encap will not be supported by 'C' Abstraction & encapsulation is a concept of OOP [Object Oriented Programming] But, 'C' is not an OOP whereas it is a POP [Procedure oriented programming], so obviously 'C' does not support abstraction and encapsulation Answer Encapsulation is not inherently supported but it can be emulated in C. The use of static and extern keywords for functions are almost equivalent to your private and public keywords in java (encapsulation). Read up more on those keywords.. Structures become an object's attributes while functions accepting pointers the the said struct become its methods.


What c plus plus programming statements to implement data abstraction?

Data abstraction is a design concept, whereby interfaces and implementations are kept separate. That is, it should not be necessary to know how an object works in order to use it. The interface provides all you need to know. This reflects much of real life. When watching TV, you have a remote control which allows you to select a channel, but it is not necessary to know how the TV receives and processes radio signals, nor how it separates one channel from another. Those are implementation details that are only of concern to TV engineers. In C++, there are no statements as such to implement data abstraction. You achieve it by designing a public interface which is accessible to normal users, and a private interface that is only accessible to the class designer.


What is meant by abstraction in c plus plus?

Abstraction is a process by which higher concepts are derived from the usage and classification of literal ("real" or "concrete") concepts, first principles and/or other abstractions.


Which languages support multiple interface?

If by interface you mean, a mechanism to achieve abstraction and create a blueprint for future implementation. Java/C#/C++ all allow for multiple interfaces(abstract classes in C++) to be implemented.


Is it necessary to know C or C plus plus to learn matlab?

No. Both C and C++ are low- to mid-level languages while MATLAB is a high-level language. The level determines the amount of abstraction involved, and the higher the amount of abstraction, the easier a language is to use. Knowledge of another language is never a bad thing though. The more languages you are familiar with, the more easily you can determine which language is best suited to a particular solution.

Related Questions

What is data abstraction in c sharp?

Abstraction means that all information exist but only the relevent information is provided to the user. Encapsulation assists abstraction by providing a mean of suppressing the non-essential details.


What has the author R C B Cooper written?

R. C. B. Cooper has written: 'Preserving abstraction in concurrent programming'


Can abstraction encapsulation be achieved in C program if yes explain?

abstraction and encapsulation is one of the concepts of OOPs and C is not an OOP [Object Oriented Programming language] obviously abst & encap will not be supported by 'C' Abstraction & encapsulation is a concept of OOP [Object Oriented Programming] But, 'C' is not an OOP whereas it is a POP [Procedure oriented programming], so obviously 'C' does not support abstraction and encapsulation Answer Encapsulation is not inherently supported but it can be emulated in C. The use of static and extern keywords for functions are almost equivalent to your private and public keywords in java (encapsulation). Read up more on those keywords.. Structures become an object's attributes while functions accepting pointers the the said struct become its methods.


In computer terms What is the diffference between C and C plus plus?

In computer terms there is no difference. The difference is only in the high-level abstraction which is only of relevance to programmers, and of no relevance to computers. The resulting machine code is the same for any given program, the only real difference being how the code is optimised. Ultimately, C and C++ are merely tools to produce machine code programs -- they just achieve it in different ways. That is, anything you can do with C++ you can also do with C, it just requires more effort because of the reduced abstraction in C. By the same token, anything you can do in C you can also do in assembly language, which has the lowest level of abstraction.


What c plus plus programming statements to implement data abstraction?

Data abstraction is a design concept, whereby interfaces and implementations are kept separate. That is, it should not be necessary to know how an object works in order to use it. The interface provides all you need to know. This reflects much of real life. When watching TV, you have a remote control which allows you to select a channel, but it is not necessary to know how the TV receives and processes radio signals, nor how it separates one channel from another. Those are implementation details that are only of concern to TV engineers. In C++, there are no statements as such to implement data abstraction. You achieve it by designing a public interface which is accessible to normal users, and a private interface that is only accessible to the class designer.


Why do we use C language?

We use C when we want to write low-level code with a higher level of abstraction than that provided by assembly language.


What is meant by abstraction in c plus plus?

Abstraction is a process by which higher concepts are derived from the usage and classification of literal ("real" or "concrete") concepts, first principles and/or other abstractions.


When was In Abstraction created?

In Abstraction was created on 2011-12-06.


What are the concepts of object oriented programming in c plus plus?

The concepts of OOP in C++ are the same as for OOP in any other programming language: abstraction, encapsulation, inheritance and polymorphism.


Which languages support multiple interface?

If by interface you mean, a mechanism to achieve abstraction and create a blueprint for future implementation. Java/C#/C++ all allow for multiple interfaces(abstract classes in C++) to be implemented.


Is it necessary to know C or C plus plus to learn matlab?

No. Both C and C++ are low- to mid-level languages while MATLAB is a high-level language. The level determines the amount of abstraction involved, and the higher the amount of abstraction, the easier a language is to use. Knowledge of another language is never a bad thing though. The more languages you are familiar with, the more easily you can determine which language is best suited to a particular solution.


What term refers to presenting an image so realistically that it has no hidden meaning A allusion B Literism C Personifiction D Abstraction?

the answer is allusion