what isthe difference between c structure and c++ class

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by variable?

565


What are classes oop?

589


Can we create object of abstract class?

567


When not to use object oriented programming?

560


How do you define social class?

594






What are oops functions?

571


What is property in oops?

555


What is the real time example of encapsulation?

582


What is static in oop?

582


What is multilevel inheritance in oop?

547


What is an advantage of polymorphism?

583


What is abstraction in oop with example?

635


What is ambiguity in inheritance?

615


What is polymorphism in oop example?

507


Why do we need oop?

652