Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Why Classes are made in C++ within the C and C++ forums, part of the Software Development category; As there are structures present in C++ and we can all operation of classes on structure so why classes are made. What was the need to make them. explain it...
|
|||||||
|
|||
|
Why Classes are made in C++
As there are structures present in C++ and we can all operation of classes on structure so why classes are made. What was the need to make them. explain it
|
| Sponsored Links |
|
|||
|
Re: Why Classes are made in C++
One difference is Structures are passed using call-by-value and clases are passed using call-by-reference.
Costructors can be declared for structures and it can also be inherited (but default as public), but not sure whether we can perform "operator overloading" with strucutres. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ Storage Classes | Lokesh M | C and C++ | 0 | 09-11-2007 07:20 AM |
| Map Standard Classes | vikas.rout | WinRunner | 0 | 08-28-2007 11:40 PM |
| Why HR and what made you to take up this field? | harenee | Interviews | 2 | 06-10-2007 10:57 PM |
| applying torsion to a bar made from 4130 material - Please help | bkelly301 | Mechanical Engineering | 0 | 01-26-2007 01:06 PM |
| Home-made Paneer | Lokesh M | Geeks Lounge | 0 | 10-08-2006 02:50 PM |