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
Explain the priority queues?
What is the difference between the expression “++a” and “a++”?
What is the difference between procedural and declarative language?
Tell us something about keyword 'auto'.
What does calloc stand for?
What is a wrapper function in c?
Explain built-in function?
how to construct a simulator keeping the logical boolean gates in c
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
What are Macros? What are its advantages and disadvantages?
Can we assign string to char pointer?
What is signed and unsigned?
Explain what is the most efficient way to store flag values?
What are loops c?
What is the difference between text files and binary files?