answersLogoWhite

0

There are no classes in C and therefore no way to encapsulate information. Although it is possible to use structures containing both data and pointers to the functions that operate upon that data, and thus emulate object-oriented behaviour, all data is publicly accessible. To be hidden, data and implementation details need to be made private and there is no such mechanism in C.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

How do you apply class diagram with programming languages which is not based on object-oriented like c?

You cannot. Class diagrams are only applicable to object oriented programming languages. C is not object oriented, but C++ is.


What are Objects and Classes in C programming?

C is not an object-oriented programming language. As such there is no such thing as an object or a class in C programming. C++ is the object-oriented version of C (originally known as C with Classes). The two are separate languages that share a common syntax. A class is a datatype, much like a struct in C, except that you can define functions as members as well as data. An object is an instance of a class.


What is the unit of programming in c plus plus A. Function B. class C. object D. Attribute?

B. Class.


How Create mouse in C programming source code?

Here is the article for Mouse programming in C. In this link full details are given nicely.http://electrofriends.com/articles/computer-science/c-tutorials/mouse-programming-in-cc/


How can we make sure (pragmatically) that a class will have no further child classes. Which programming stmt will do this in Java and C?

How can we make sure (pragmatically) that a class will have no further child classes. Which programming stmt will do this in Java and C++?


Details for library fctions in C programming?

... are important to know. ... can be found in the manuals.


What are the different storage class in C programming?

Automatic, register, external, static


Can you create class in 'c'?

Class acts as an encapsulation of attributes and methods, that is used by an object oriented programming (OOP) language. Since C is not an OOP, its a structural programming language, one can not create classes in C. That is why OOP version of C was developed called C++, where one can work with classes.


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


Write down a program structure of c plus plus?

C++ programs are structured with data types and functions, much like C before it. However, unlike C, data types and functions can be combined to create entities that encapsulate a set of data and provide an interface to operate upon that data. These data types are known as classes, from which objects can be instantiated. Classes may also contain static data and methods which are local to the class rather than to a specific instance of the class. Although C++ is a general purpose, object-oriented programming language, it is also backwardly compatible with C and programs can be written using 4 different programming styles: procedural programming, data abstraction, object-oriented programming and generic programming. Most C++ programs are written using a combination of these styles.


What is a class in c?

That is where students are in a classroom with an instructor learning how to program computers in the C language. Other than that the C programming language does not have classes.


What is a class c?

That is where students are in a classroom with an instructor learning how to program computers in the C language. Other than that the C Programming language does not have classes.