473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

brand new to Oops... question, help please?

Jim

Hello...
I have just completed chapters 1-9 of Jessie's Learning
C#. Great tutorial! But, talk about method overloading,
I'm overloaded with OOPs! Can someone offer me some
advise, please?

I have a page of code now with a class named Time and a
Class named Tester per the example in 9-1. I also have a
tab on the top of the Visual Studio code pane named
class1.cs.

My question is: should I, at some point in time, right
click in the Solution Explorer pane and rename Class1.cs
to something else? If so, what? perhaps tester.cs or
time.cs? if so, why one vs. the other? Which one is the
dominant class?

Thanks,
Jim

Nov 15 '05 #1
1 1433
Jim wrote:
My question is: should I, at some point in time, right
click in the Solution Explorer pane and rename Class1.cs
to something else? If so, what? perhaps tester.cs or
time.cs? if so, why one vs. the other? Which one is the
dominant class?


The name of the source is purely an organizational tool and has no
effect upon your program's ability to function. You can choose to use
one file for each class or define several classes in a single file.

In the case of one class to one file, it makes sense to name the file
after the class. When one file contains multiple classes, there's
usually some common thread to those classes so it makes sense to name
the file after that purpose.

For eaxmple, you might consider naming your file TimeUtilities or some
such thing.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: matty | last post by:
Go away for a few days and you miss it all... A few opinions... Programming is a craft more than an art (software engineering, not black magic) and as such, is about writing code that works,...
2
by: noone | last post by:
Hello all, I am absolutely brand new to perl, but I understand that it is a very important aspect of web development to create dynamic web pages. I am kind of short on money, being a college...
1
by: Miles Keaton | last post by:
I'm a brand new PostgreSQL user -- just started today (though I've used MySQL for years). Should I just start learning with version 8, since I'm sure I won't launch any real live public...
4
by: Alan Edmund | last post by:
Hello, I am trying to make use of the following: function checkIt(){ if (document.PRODADD.AttributeValue.value == "") { //validate month select alert("Please select an option!");...
3
by: Marwan | last post by:
Hello. please i need ur advice to tell me what is best php book that can show me the way in, coz i am brand new on php so please help. thanks ALOT.
0
by: su.k.mishra | last post by:
Hello Friends, Please Visit http://techinterviewquestion.blogspot.com site In this site you can find .Net,C#,OOPS,Java,JSP Interview Question With Answer. Cmpany asked question is also...
0
by: su.k.mishra | last post by:
Hello Friends, Please Visit http://techinterviewquestion.blogspot.com site In this site you can find .Net,C#,c++,OOPS,Java,WebService & Remoting ,JSP Interview Question With Answer. Cmpany asked...
2
by: doll | last post by:
hi i need to implement oops concept in .net...i need to create a private class and an object for a class..i should also create a method and call the method using the object..please someone help...
0
by: lbseong | last post by:
Hi Expert, I am currently looking for the way for the migration.We have purchase new server and need to migrate all the entire database, sql jobs, sql login into this brand new server. I would...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.