What is the difference between Class and structure
firdousahmad
-1
Junior Poster in Training
Recommended Answers
Jump to PostThe only real difference between a
struct
and aclass
is in the default inheritance and access rights. Given a base-classB
, you could write:class C : B { // inherits B privately, by default, same as ': private B {'. void foo(); …
All 2 Replies
ome2012
2
Junior Poster in Training
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
np complete
commented:
nice information
+3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.