what isthe difference between c structure and c++ class

Answers were Sorted based on User's Feedback



what isthe difference between c structure and c++ class..

Answer / harshad khedekar

c does not allow struct data type to be treated like built-in datatype also it does not supports data hiding concept.in c++ instead of struct we have class which overcomes all the above limitations.

Is This Answer Correct ?    12 Yes 0 No

what isthe difference between c structure and c++ class..

Answer / kapil

c does not have templates,c++ has templetes

Is This Answer Correct ?    3 Yes 1 No

what isthe difference between c structure and c++ class..

Answer / jeremiah

The default scope of a C struct is public, whearas the
default scope of a C++ class is private.

Is This Answer Correct ?    3 Yes 1 No

what isthe difference between c structure and c++ class..

Answer / amarnath

Construtor is not in c strut and present in c++ class

Is This Answer Correct ?    4 Yes 3 No

what isthe difference between c structure and c++ class..

Answer / a.sivasakthi

c structure are only define the data and data types
C++ class are define the data and solve the function the
both process are solved to the c++ class

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

Program to open a file with First argument

1 Answers   TCS,


Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 Answers  


Explain the concept of abstracion and encapsulation with one example. What is the difference between them?

3 Answers   PCS,


What is object and class in oops?

0 Answers  


What is polymorphism give a real life example?

0 Answers  


What is the purpose of enum?

0 Answers  


Polymorphism with an example?

8 Answers   Accenture, emc2,


why reinterpret cast is considered dangerous?

0 Answers   TCS,


Why is destructor used?

0 Answers  


What is constructor in oop?

0 Answers  


what is pointers

7 Answers   Exilant,


What is Iteration Hierarchy? What is what is Object behavioral concept?

1 Answers  


Categories