Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 25th, 2006, 06:35 AM
Authorized User
 
Join Date: Jun 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is C# fully object oriented ?

Hi P2Pz,
I would like to know if C# is fully object oriented, cuz some pro programmers told me that it isnt, one of their examples is the data types just like (int, double, bool) that they compare it to java, i didnt understand well their point but my own explaination is like the following:

in java we can use (int) to define an integer variable 'int x;', also i remember something called 'wrapper class' where we can do it like this way 'Integer x = new Integer()', here we can notice a class in 'Integer' where a class means an object, now does 'int x;' in C# equals something like 'Integer x = new Integer()' implicitly ??? am thinking may be as the data types is used all the time it is hard to create it using the standard object creation 'Object obj = new Object()', instead the compiler may be do it for us implicitly just by using any key word like 'int' .

i hope u got my idea, plz dont hesitate to mail me.

akkad
 
Old July 2nd, 2006, 01:44 PM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

int is an alias for int structure in C#.

int i;
int i = new int();
Int32 i = new Int32();

All the above three are have same meaning in C#.



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Oriented Programming jgrant C# 2005 0 March 16th, 2007 03:04 AM
Is Javascript object oriented language or not . Konan Java Basics 3 July 25th, 2006 07:09 PM
Object oriented ASP. madhukp Classic ASP Basics 10 July 2nd, 2004 09:43 AM
Object oriented programming with VB6 james gold Pro VB 6 3 September 27th, 2003 02:31 PM
Object oriented programming with VB6 james gold Beginning VB 6 3 September 18th, 2003 02:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.