IT Community - Software Programming, Web Development and Technical Support

Difference of Structures and Classes

This is a discussion on Difference of Structures and Classes within the C and C++ Programming forums, part of the Software Development category; Hi Pals can you explain What is the difference between structures and classes in C++?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-18-2007, 02:55 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Question Difference of Structures and Classes

Hi Pals can you explain What is the difference between structures and classes in C++?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-24-2007, 10:53 AM
shanmugamit shanmugamit is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 10
shanmugamit is on a distinguished road
Default Re: Difference of Structures and Classes

In structure,the default access specifier is public,where in class the default access specifier is private.

A structure would be collection of related data, while a class would be collection of data and code which handles that data.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
looping structures in Ruby? vadivelanvaidyanathan Ruby 1 08-18-2007 12:53 AM
Difference between a file and Random access file Classes anbuchezhians Java Programming 1 08-08-2007 01:53 AM
How can do test the Pointers & Structures? sundarraja Software Testing 1 07-30-2007 09:54 PM
What is the difference between structures and enumeration? anbuchezhians VB.NET Programming 1 07-28-2007 12:50 AM
How can I allocate arrays or structures bigger than 64K? vadivelanvaidyanathan C and C++ Programming 1 07-17-2007 02:33 AM


All times are GMT -7. The time now is 08:54 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0