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  
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
  #2  
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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Control Structures Falcon PHP Programming 12 07-02-2008 12:17 AM
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


All times are GMT -7. The time now is 06:40 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0