What is the difference between Class and Structure?

Answer Posted / amit

strucuter member function and variable are by defualt
public and class member varible and funtion are by defualt
private.
sructure can not inherited but class can .

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about the various sections of the executable image?

579


Why should we use null or zero in a program?

608


What is a pointer how and when is it used?

580


What is an inclusion guard?

625


What is a .lib file in c++?

577






Does a derived class inherit or doesn't inherit?

621


What are structures and unions?

577


Is multimap sorted c++?

562


What are libraries in c++?

613


what are the events occur in intr activated on interrupt vector table

1185


What do you mean by inheritance in c++?

612


What is difference between c++ and c ++ 14?

583


How do I make turbo c++ full screen?

588


How do you establish an is-a relationship?

627


What is a breakpoint?

565