What is the Difference between Class and Struct?

Answer Posted / manju

The only difference between class and struct is that

in class all members are private by default whereas in

struct the members are by default public.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I prevent another program from modifying part of a file that I am modifying?

640


What is struct node in c?

620


What happens if you free a pointer twice?

610


List out few of the applications that make use of Multilinked Structures?

1301


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1467






why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

654


if p is a string contained in a string?

1405


What is f'n in math?

621


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1467


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1461


What is the scope of global variable in c?

556


What does struct node * mean?

601


what is event driven software and what is procedural driven software?

2016


How do you use a pointer to a function?

635


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1892