answersLogoWhite

0

Can you create class in 'c'?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you create class in 'c'?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you create a class in C plus plus?

class class_name { private: data_members; public: member_functions; };


How do you create object name for child class in c?

child a=new child();


How do you write classes and objects for hospital management software using objective c or c plus plus?

You declare a class as follows: class MyClass { //some stuff here... } You create an object as follows: MyClass object; This is how you create classes and objects in C++.


How can you store Class properties in Array in c?

Yes, you can create array that will store class properties. But all of them have to be of the same type.


Is it possible to create 9 subnets of equal size or do you have to create a different number of subnets?

Depending on class of network you are planning to use. For class C you can create much more then that (and for the most case for others too).


What is message passing in c plus plus?

-define class with necessary data member & member function. -create object of that class. -communication.


Is reader class is an abstract class?

For Java: Yes, Reader is an abstract class in package of java.io; For C#: No, Reader is NOT one of the defined library classes. Of course you create one.


How many bits are borrowed from a Class C host address to create 6 new sub-nets?

20


Why class is not protected in c?

In C#, the concept of protected is to be accessible to derived classes.Let's assume that a class can be modified as protected. When you want to subclass from such class, wait, you cannot see that class, because only the derived classes can see it, but the one you want to create is not one of them (yet).... I think this is the reason a class cannot have protected accessibility


What class address is 192.168.1.21?

Class C.


How constructor called?

You cannot invoke a constructor explicitly. It will get invoked implicitly when you call the new keyword on the class to create an object of the class. Ex: private ClassExample obj = new ClassExample(); here this new keyword usage on the ClassExample class will invoke the constructor of this class and create an object of that class.


What is meant by instancing a class?

The class can be considered a template to create objects. When you create an object, you create it on the basis of the specified class - the object is an instance of the class, and the act of creating the object is also known as "instantiating" the class.