What is the difference between Class and Structure?
Answer Posted / ramesh.alavala
class provides data hiding,structures doesn't provide.
class support polymorphism,structures doesn't support.
classes by default are inherited by privately,structures are
inherited by publicly.
classes can be abstract, structures can't be abstract.
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is c++ map?
What is format for defining a structure?
How new/delete differs from malloc()/free?
What is c++ vb?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
Are strings mutable in c++?
What are the different types of polymorphism in c++?
Can I learn c++ in a week?
Why do we use structure in c++?
How do you flush std cout?
What is the use of map in c++?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What problems might the following macro bring to the application?
What is the insertion operator and what does it do?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?