what is the difference between class and structure in C++?

Answer Posted / pradeepramagiri

class members have the privite access by default where as
structure members have the public access by default

Is This Answer Correct ?    34 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by abstraction?

828


What is difference between data abstraction and encapsulation?

844


Give two or more real cenario of virtual function and vertual object

2083


Can we create object of abstract class?

840


write a C++ program for booking using constructor and destructor.

2279


What is methods in oop?

749


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2995


Is html an oop?

793


Plese get me a perfect C++ program for railway/airway reservation with all details.

3674


class type to basic type conversion

2100


What is the main purpose of inheritance law?

954


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1897


What is polymorphism oop?

832


What is the real time example of encapsulation?

805


What is this pointer in oop?

807