What is the difference between Class and Structure?

Answer Posted / hardik savani

class is refrains type and structure is value type most op
us variable public and private in class.
public variable is use any component and private variable is use only class property

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define stacks. Provide an example where they are useful.

544


Explain the isa and hasa class relationships. How would you implement each?

582


What operator is used to access a struct through a pointer a) >> b) -> c) *

574


How does code-bloating occur in c++?

715


What is an adjust field format flag?

614






Explain the concept of memory leak?

595


Are vectors passed by reference c++?

489


What is the benefit of encapsulation?

575


What is type of 'this' pointer?

574


Describe delete operator?

602


What does std :: flush do?

662


Why can templates only be implemented in the header file?

632


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

577


Is c++ a float?

585


What is an adaptor class or wrapper class in c++?

583