473,396 Members | 2,013 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,396 software developers and data experts.

OOP Starting Question

I have posted a similar question before but now want to officially begin
a new project correctly using OOP. I have created two classes, Customer
and Customers. I want Customers to have some form of a
variable/array/collection/etc. that contains as many customer objects as
I need to be using at that time.

For example when I populate a listing of all of the customers in the
database I figured there should be a variable that fills itself with all
of the customers, and than the customers class should contain methods to
return all of them to fill my list.

How should I do this? What datatype should I be using?

If anyone can suggest a good OOP book for visual basic that isnt too
generic I would love to buy it as a reference. I am not a programmer by
profession and am doign this for my company on my own time and consider
myself to be intermediate and find most books I can follow the samples
but am not able to grasp the concepts to do on my own.

Thanks in advance,

Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
2 868
Ivan,
Robin A. Reynolds-Haertle's book "OOP with Microsoft Visual Basic.NET and
Microsoft Visual C# .NET - Step by Step" from MS Press does a good intro to
the "how" of OOP in VB.NET, however it does not cover the "why" of OOP.

For a CustomerCollection class (Customers property) I would inherit from
either System.Collections.CollectionBase or
System.Collections.DictionaryBase depending on if I needed to get at a
Customer object by index (CollectionBase) or a unique id (Key)
(DictionaryBase).

Hope this helps
Jay

"Ivan Weiss" <iv*****@optonline.net> wrote in message
news:eR*************@TK2MSFTNGP12.phx.gbl...
I have posted a similar question before but now want to officially begin
a new project correctly using OOP. I have created two classes, Customer
and Customers. I want Customers to have some form of a
variable/array/collection/etc. that contains as many customer objects as
I need to be using at that time.

For example when I populate a listing of all of the customers in the
database I figured there should be a variable that fills itself with all
of the customers, and than the customers class should contain methods to
return all of them to fill my list.

How should I do this? What datatype should I be using?

If anyone can suggest a good OOP book for visual basic that isnt too
generic I would love to buy it as a reference. I am not a programmer by
profession and am doign this for my company on my own time and consider
myself to be intermediate and find most books I can follow the samples
but am not able to grasp the concepts to do on my own.

Thanks in advance,

Ivan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2
Hi
I like this book 'Visual Basic .Net Classes Design -
Coding Effective Classes' from Wrox. Is contains the
following chapters : Defining Types, Type Members,
Methods, Constructors and the Object Lifecycle,
Properties, Events and Delegates, Inheritance and
Polymorphism, Code Organizations and Metadata.

Kind Regards
Jorge
-----Original Message-----
I have posted a similar question before but now want to officially begina new project correctly using OOP. I have created two classes, Customerand Customers. I want Customers to have some form of a
variable/array/collection/etc. that contains as many customer objects asI need to be using at that time.

For example when I populate a listing of all of the customers in thedatabase I figured there should be a variable that fills itself with allof the customers, and than the customers class should contain methods toreturn all of them to fill my list.

How should I do this? What datatype should I be using?

If anyone can suggest a good OOP book for visual basic that isnt toogeneric I would love to buy it as a reference. I am not a programmer byprofession and am doign this for my company on my own time and considermyself to be intermediate and find most books I can follow the samplesbut am not able to grasp the concepts to do on my own.

Thanks in advance,

Ivan

*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 20 '05 #3

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

Similar topics

2
by: Jason Charalambides | last post by:
Hello, My question is: How do I get my application to start by double clicking on a file. I have made my application to save files with a specific extension. I associated those files to my...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
16
by: Jim Langston | last post by:
I know that functions starting with an underscore, or two underscores, are reserved by the compiler/c++ and should not be used by the user and may cause undefined behavior. My question is, how...
3
by: Alex Schaft | last post by:
Hi, I'm starting to teach myself Java, and have a quick question: Why does the first if statement return false, and the second return true? cParameter = "/u:001" if...
7
by: | last post by:
Hi to everyone! I have an Apache Webserver running on Win2000. I try to start a console application an the server though PHP, with the functions exec() or passthru() but it doesn't work. The...
4
by: markalexander | last post by:
Hi there, I am totally new to database programming, and just have a question about starting psql. I've downloaded the latest version of postgresql in windows (xp), and now I need to start using it,...
1
by: ktilcu | last post by:
I have the great task of starting and managing a database of clients at my office. We have 2200 records of information in an excel spreadsheet with almost 23 columns of fields. Now my question is,...
7
by: PaulaCM | last post by:
Hello Again Byters (hmmm... that sounded better in my head!)! Question on Primary Keys / Auto numbering. I want to make sure that each record has its own individual ID (hence primary key) but,...
1
by: SCRIPT KEEPER | last post by:
Hello, I am a complete noob and just starting off with csharp so I apologize for my basic question. I am wanting to start powershell from inside a batch script and then to pass the powershell args...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.