what is the difference between class and structure in C++?

Answer Posted / renuka

IN CLASS WE USE BOTH VARIABLE AND FUNCTION OR IN STRUCTURE WE USE VARIABLE ONLY....

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is abstraction needed?

773


What is abstraction in oop?

870


How do you achieve polymorphism?

837


What is polymorphism and its types?

825


What is static in oop?

839


How is class defined?

852


What is persistence in oop?

885


What is the significance of classes in oop?

823


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6722


program for insertion ,deletion,sorting in double link list

2460


What is inheritance in simple words?

830


What is encapsulation oop?

813


Can we override main method?

853


What is inheritance and how many types of inheritance?

838


What is destructor example?

786