Wrox Programmer Forums
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 July 29th, 2007, 01:00 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default static fileds

hi expert
i want to know using the static fileds with flowing declaration is against OOP programming method?

Code:
public static int a;
 
Old July 31st, 2007, 05:49 AM
Authorized User
 
Join Date: Sep 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why do you think it would be against OO?

Geert

http://geertverhoeven.blogspot.com
 
Old August 5th, 2007, 06:18 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

i donot think so public acces specifier comes in theory of OOPS!

thanks......
 
Old August 5th, 2007, 06:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How would you ever use an object if it didn't include a public access modifier somehow?

How would one object talk to another if all classes and members were private?

I don't see why a public access modifier would go against OO rules...

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Static DataSet pvasudevan ASP.NET 1.0 and 1.1 Professional 7 February 28th, 2008 10:36 PM
non-static reports to static html files miamikk ASP.NET 2.0 Basics 0 June 4th, 2007 01:48 PM
static libraries silvia C# 3 March 2nd, 2006 04:50 AM
[Static Group] pavlov Reporting Services 0 February 10th, 2006 10:12 AM
static dataset ffranko99 VB.NET 2002/2003 Basics 0 August 1st, 2003 06:50 AM





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