Geeks Talk

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.

Why Classes are made in C++

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...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 04-08-2008
Junior Member
 
Join Date: Apr 2008
Location: pakistan
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
safderali is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-10-2008
Junior Member
 
Join Date: Jul 2007
Location: delhi
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
sachinbca2006 is on a distinguished road
Re: Why Classes are made in C++

clases are called the blue print without object data can not be accesed .
in java,c++,c# class is used becoz without object it is dummy model.
Reply With Quote
  #3 (permalink)  
Old 04-12-2008
Junior Member
 
Join Date: Mar 2008
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gupta_pratibha is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

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

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


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


All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved