What is the difference between Class and Structure?

Answer Posted / anupam gupta

class has define object and funtion
structure has define only object

Is This Answer Correct ?    8 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ library?

596


an integer constant must have atleast one a) character b) digit c) decimal point

554


Can you explicitly call a destructor on a local variable?

600


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1581


Why use of template is better than a base class?

642






Why do we use string in c++?

509


What is std :: flush?

576


What is a volatile variable in c++?

556


What is an accessor in c++?

618


What does new return if there is insufficient memory to make your new object?

582


What is the two main roles of operating system?

510


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2066


Explain function overloading and operator overloading.

617


What are multiple inheritances (virtual inheritance)?

581


Difference between overloaded functions and overridden functions

576