What is the difference between class and structure?

Answer Posted / satish

1.class access data members and member functions but
structure access only data members
2.class supports constructor but structure does not supports.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of interface?

611


What is pointer in oop?

541


what are the realtime excercises in C++?

2337


Which language is not a true object oriented programming language?

646


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






What is destructor in oop?

627


What is this pointer in oop?

557


What is the fundamental idea of oop?

640


Can main method override?

588


Why do we use oop?

607


What is the significance of classes in oop?

592


Who invented oop?

659


What is destructor give example?

608


How is class defined?

589


write a program to find 2^n+1 ?

1555