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

What is abstraction with example?

0 Answers  


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


What makes a language oop?

0 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


What is inheritance in oop?

0 Answers  






What is polymorphism what are the different types of polymorphism?

0 Answers  


what is multithreading in c++ , what is difference between multithreading and singlethreading.

4 Answers  


OOP'S advantages of inheritance include:

1 Answers   Infosys,


What is abstraction in oop?

0 Answers  


What is the Advantage of Interface over the Inheritance in OOPS?

4 Answers  


What does and I oop and sksksk mean?

0 Answers  


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


Categories