What is the difference between class and structure?

Answer Posted / arvind

The main difference is
Structure ... Class
struct . Class
{ . {
data members ... data members
} ... +
... Member functions
... }

We can't define Functions inside structure where as in class we can define inside

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of loop is a for loop?

688


What is inheritance and how many types of inheritance?

624


Is this job good for future? can do this job post grduate student?

1694


What is methods in oop?

555


What is encapsulation process?

586






Where is pseudocode used?

569


What is the renewal class?

2171


What polymorphism means?

624


Can we override main method?

609


is there any choice in opting subjects like 4 out of 7

1733


What is static modifier?

638


What is this pointer in oop?

557


What is polymorphism what are the different types of polymorphism?

568


What are the three main types of variables?

606


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1794