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

assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1662


what is graphics

2004


What is abstract class in oop?

526


What are the 4 pillars of oop?

664


What is the purpose of enum?

577






Can we override main method?

597


Please send ford technologies placement paper 2 my mail id

1650


What is abstraction in oop?

625


What do you mean by Encapsulation?

636


Which language is pure oop?

545


What does and I oop mean?

610


What is polymorphism give a real life example?

557


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1635


How do you use inheritance in unity?

584


What is solid in oops?

597