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

What is c++ w3school?

628


What is meant by const_cast?

646


What do nonglobal variables default to a) auto b) register c) static

642


Can non graphic characters be used and processed in C++?

701


Write a program to add three numbers in C++ utilizing classes.

619






How do you declare A pointer to function which receives an int pointer and returns a float pointer

672


Difference between inline functions and macros?

598


What is the use of main function in c++?

524


What is a terminating character in c++?

760


What is pure virtual function?

623


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

667


Explain Memory Allocation in C/C++ ?

634


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1855


What is late binding c++?

538


What is friend class in c++ with example?

498