What is the difference between Class and Structure?
Answer Posted / sharad
in c++ structure and class are same. we can use the
structure in place of class for creating the object. but
the difference is only the default access specifier of the
class is private and public of the structure.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Where the memory to the static variables is allocated?
Why struct is used in c++?
How do you master coding?
What are the data types in c++?
What does catch(…) mean?
What is while loops?
Describe the setting up of my member functions to avoid overriding by the derived class?
How are virtual functions implemented in c++?
What are the advantages of c++?
What is math h in c++?
How can you differentiate between inheritance and implementation in c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
Difference between overloading vs. Overriding
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is set in c++?