Hi,
I made my first steps with oriented object programs and I ask my self a lot
of questions...
Also, I d'ont really know if I post in the rigth Newsgroup...
I have 3 "objects" ?
Equipement, Bloc and Variable
Equipement contains properties : Name, Type
Bloc contains properties : Name, Type, Size
Variable contains property : Name
For one Equipement, I can have X Blocs and for each Blocs, X Variables.
Of course I could have may Equipements.
How can I structurized this ? For exemple I need to know for one Variable
what's the parent's Bloc and Equipement...
I have think to a multi dimensions array ? Is it the good way ?
Your help will be be good...
Thanks a lot
H. MAILLARD 3 1287
The Equipment class should have a collection of Bloc objects. The bloc
class should have a collection of Variable objects.
Depending on how you structure it, you can force Variables to only exist as
part of a Bloc, and that way you could always know who the parent Bloc is.
"Herve MAILLARD" <rv********@free.fr> wrote in message
news:3f**********************@news.free.fr... Hi,
I made my first steps with oriented object programs and I ask my self a
lot of questions... Also, I d'ont really know if I post in the rigth Newsgroup...
I have 3 "objects" ?
Equipement, Bloc and Variable
Equipement contains properties : Name, Type Bloc contains properties : Name, Type, Size Variable contains property : Name
For one Equipement, I can have X Blocs and for each Blocs, X Variables. Of course I could have may Equipements.
How can I structurized this ? For exemple I need to know for one Variable what's the parent's Bloc and Equipement...
I have think to a multi dimensions array ? Is it the good way ?
Your help will be be good...
Thanks a lot
H. MAILLARD
Marina,
Thanks for your answser !
Can you please tell me more about Collections or give me some samples ?
thanks for your help .
H. MAILLARD
"Marina" <zl*******@nospam.hotmail.com> a écrit dans le message de news: es*************@TK2MSFTNGP10.phx.gbl... The Equipment class should have a collection of Bloc objects. The bloc class should have a collection of Variable objects.
Depending on how you structure it, you can force Variables to only exist
as part of a Bloc, and that way you could always know who the parent Bloc is.
"Herve MAILLARD" <rv********@free.fr> wrote in message news:3f**********************@news.free.fr... Hi,
I made my first steps with oriented object programs and I ask my self a lot of questions... Also, I d'ont really know if I post in the rigth Newsgroup...
I have 3 "objects" ?
Equipement, Bloc and Variable
Equipement contains properties : Name, Type Bloc contains properties : Name, Type, Size Variable contains property : Name
For one Equipement, I can have X Blocs and for each Blocs, X Variables. Of course I could have may Equipements.
How can I structurized this ? For exemple I need to know for one
Variable what's the parent's Bloc and Equipement...
I have think to a multi dimensions array ? Is it the good way ?
Your help will be be good...
Thanks a lot
H. MAILLARD
Try this resource: http://www.csharphelp.com/archives/archive183.html
You can also search the visual studio / MSDN help to find explanatory
articles about the .NET collections.
Hope it helps,
-- Rob.
Herve MAILLARD wrote: Marina,
Thanks for your answser !
Can you please tell me more about Collections or give me some samples ?
thanks for your help .
H. MAILLARD
"Marina" <zl*******@nospam.hotmail.com> a écrit dans le message de news: es*************@TK2MSFTNGP10.phx.gbl... The Equipment class should have a collection of Bloc objects. The bloc class should have a collection of Variable objects.
Depending on how you structure it, you can force Variables to only exist as part of a Bloc, and that way you could always know who the parent Bloc is.
"Herve MAILLARD" <rv********@free.fr> wrote in message news:3f**********************@news.free.fr... Hi,
I made my first steps with oriented object programs and I ask my self a lot of questions... Also, I d'ont really know if I post in the rigth Newsgroup...
I have 3 "objects" ?
Equipement, Bloc and Variable
Equipement contains properties : Name, Type Bloc contains properties : Name, Type, Size Variable contains property : Name
For one Equipement, I can have X Blocs and for each Blocs, X Variables. Of course I could have may Equipements.
How can I structurized this ? For exemple I need to know for one Variable what's the parent's Bloc and Equipement...
I have think to a multi dimensions array ? Is it the good way ?
Your help will be be good...
Thanks a lot
H. MAILLARD This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Redd |
last post by:
The following is a technical report on a data modeling project
that was recently assigned to me by my professor. I post it
so that anyone else who is studying databases and data modeling
can have...
|
by: DrUg13 |
last post by:
In java, this seems so easy. You need a new object
Object test = new Object() gives me exactly what I want.
could someone please help me understand the different ways to do the
same thing in...
|
by: Roger Smythe |
last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts
such that these component parts represent higher levels of conceptual abstraction, and are...
|
by: Pmb |
last post by:
Hi. I'm new to this group. I'm refreshing/learning C++ and am starting to
learn Object Oriented Programming (OOP). In discussing this with people I
came up short as to what the benefits of OOP are....
|
by: Markus Seibold |
last post by:
Hi,
I am looking for an open source (free) data modeling tool for PostgreSQL.
It should - if possible - support:
- E-R-Modelling
- relational data model / modeling
- (GUI SQL interface to...
|
by: Mike |
last post by:
I'm starting up on big project that will take much of my time in next year
or two. Until now I was mostly self-employed on small projects so I didn't
spent so much time modeling system before...
|
by: shalafi |
last post by:
Looking for a good, cheap (preferrably free) UML modeling tool. Used Jumli
in the past, has everything i want but it isnt terribly stable and doesnt
look as if they will have a new version anytime...
|
by: Ronald S. Cook |
last post by:
I'm learning DeKlarit, a RAD modeling tool that creates business and data
logic to speed development. It seems pretty cool, but I'm just so used to
writing these layers myself. I can understand...
|
by: Thomas R. Hummel |
last post by:
I'm going to try to describe this situation as best as I can, but if
anything is unclear please let me know. Some of this database was
already in place before I arrived on the scene, and I don't...
|
by: =?Utf-8?B?QmV0aA==?= |
last post by:
Hello.
I'm trying to find another way to share an instance of an object with other
classes.
I started by passing the instance to the other class's constructor, like this:
Friend Class...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |