What is the difference between Class and Structure?

Answer Posted / lucky

1) classes can have data member as well as member function but structure is a data type which can have data member only.

Is This Answer Correct ?    40 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

1985


Why is it called c++?

570


Explain what happens when a pointer is deleted twice?

727


Does c++ vector allocate memory?

520


Where the memory to the static variables is allocated?

550






What is the best it certification?

574


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

916


What is boyce codd normal form in c++?

679


Explain the difference between overloading and overriding?

603


What is the benefit of learning c++?

541


What you know about structures in C++?

582


What is a tree in c++?

557


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

610


Write bites in Turbo c++ Header ("Include") Files.

676


What is #include sstream?

611