What is the Difference between Class and Struct?

Answer Posted / satvir kaur

STRUCTURE CLASS
1.structure by default is 1. class by default is private
public.
2.structure does not 2.class provide data hiding.
provide data hiding.
3.A structure would be the 3.class would be the collection
collection of related data. of data & code which handels
data.


CAN U TELL ME MORE DIFFERENCE BETWEEN LIKE THIS PLZ TELL ME
AS EARLY AS POSSIBLE I AM WAITING

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the priority queues?

619


What is the difference between the expression “++a” and “a++”?

648


What is the difference between procedural and declarative language?

643


Tell us something about keyword 'auto'.

659


What does calloc stand for?

643






What is a wrapper function in c?

579


Explain built-in function?

587


how to construct a simulator keeping the logical boolean gates in c

1722


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

631


What are Macros? What are its advantages and disadvantages?

639


Can we assign string to char pointer?

580


What is signed and unsigned?

638


Explain what is the most efficient way to store flag values?

692


What are loops c?

614


What is the difference between text files and binary files?

674