What is the Difference between Class and Struct?

Answer Posted / sureshreddy

the diff b/w structure and class is class by deafualt
private, where as structure by default public.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files why are they important?

831


4. main() { int c=- -2; printf("c=%d",c); }

1567


explain what is an endless loop?

829


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

970


what is the difference between 123 and 0123 in c?

949


What is the main difference between calloc () and malloc ()?

845


How can you call a function, given its name as a string?

918


What is nested structure with example?

825


What is the purpose of 'register' keyword?

890


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1963


What is this pointer in c plus plus?

806


Explain what are global variables and explain how do you declare them?

846


What is a newline escape sequence?

862


Is it better to bitshift a value than to multiply by 2?

866


ATM machine and railway reservation class/object diagram

5007