Glossary entry (derived from question below)
English term or phrase:
classmate
Italian translation:
membro di classe
Added to glossary by
Alessio Grassi
Aug 16, 2013 14:49
10 yrs ago
English term
classmate
English to Italian
Tech/Engineering
IT (Information Technology)
si parla di classi informatiche e di ereditarietà
Il contesto è il seguente:
In C#, there is a constraint, and the constraint is that a *classmate* only inherit from a single base class. There may be a chain of classes that get inherited, but each class can only inherit from a single base class.
grazie in anticipo.
In C#, there is a constraint, and the constraint is that a *classmate* only inherit from a single base class. There may be a chain of classes that get inherited, but each class can only inherit from a single base class.
grazie in anticipo.
Proposed translations
(Italian)
5 -2 | membro di classe |
Anastasiya Kachurenko
![]() |
Proposed translations
-2
20 hrs
Selected
membro di classe
La traduzione e': "membro della classe"
La traduzione del contesto e': "in c# c'è un vincolo e il vincolo è che ogni membro di classe può solo ereditare da una singola classe base"
Io personalmente la lascerei cosi' invece: "in c# c'è un vincolo e il vincolo è che ogni classe e membro di classe può solo ereditare da una singola classe base"
--------------------------------------------------
Note added at 20 hrs (2013-08-17 11:00:36 GMT)
--------------------------------------------------
si, scusa "membro DI classe"
La traduzione del contesto e': "in c# c'è un vincolo e il vincolo è che ogni membro di classe può solo ereditare da una singola classe base"
Io personalmente la lascerei cosi' invece: "in c# c'è un vincolo e il vincolo è che ogni classe e membro di classe può solo ereditare da una singola classe base"
--------------------------------------------------
Note added at 20 hrs (2013-08-17 11:00:36 GMT)
--------------------------------------------------
si, scusa "membro DI classe"
Peer comment(s):
disagree |
Caterina D'Amico
: When we talk about inheritance in programming, we are always talking about classes, not members (we talk about member and method overriding). In the context provided, I keep thinking that *classe* would be the appropriate word.
1 hr
|
disagree |
James (Jim) Davis
: With Caterina in disagreeing, but don't believe "classe" is the right word.
3 hrs
|
4 KudoZ points awarded for this answer.
Comment: "Grazie"
Discussion
@ Alessio, I think you could stick to either "classe" (as Caterina correctly pointed out) which is generic enough not to be wrong or to "membro di classe" which apparently is much more complex to understand (given the length of this discussion) or using both, as I originally suggested in my answer (embracing already "classe o membro di classe" in the translation).
@ James, if you have not seen this before, like you said, may i ask why are you still commenting on this. I guess it would be wise to leave it to whoever has seen this. We, including myself, are not helping Alessio anymore, so this whole topic is getting pointless. If you will ever want to understand my point, feel free to contact me privately and i'll provide you all the details to fully understand this topic.
http://msdn.microsoft.com/en-us/library/vstudio/dd460654.asp...
To define a field:
C#
VB
Class SampleClass
{
public string sampleField;
}
Properties have get and set procedures, which provide more control on how values are set or returned.
C++, java and C# are all object oriented languages which are based on classes. The classes contain members. The members can be methods or properties, where the methods are procedures which can be called and the properties are variables containing or pointing to data. Methods can never be inherited. Data can be sometimes. Data can be strings, numbers (integers) or objects. Normally speaking strings and integers cannot be inherited, but of course objects (instances of classes) can. It is a specific characteristic of C sharp that basic data variable types are in fact sub-classes of the class object, so you have no freedom to add methods or properties to that class or change its inheritance. They are built-in.
So technically what you say is true for properties but not for methods which are also class members.
http://msdn.microsoft.com/en-us/library/vstudio/ms173118.asp...
A member of a class could be a field or a property (other than a method) and in these cases the field (or the property) must be typed. Given that any type is a class, it means that the member's type is itself a class, which can inherit from just one parent or base class, just like every other class.
As for Caterina, i was not referring to methods and overloading, but just to any typed field or property.
I guess James is slightly confused about the differences between C++ e C# which have more differences than similarities and definitely agree with Cateriana about this.
Agree with you about members. Nastya seems to be confusing members with objects which instantiate classes.
<p>@Nastya_K When we talk about inheritance in programming, we are always talking about classes, not members (we talk about member and method overriding). In the context provided, I keep thinking that *classe* would be the appropriate word.
Apart from the term "classmate" the concept expressed here is well know to people who first learnt C++ and then used C sharp. In C++ a class can inherit from more than one "parent" (c++) or "base class" (c sharp). C++ has "multiple inheritance", which can get quite complex. In c sharp inheritance is from one parent (base) class only. This is "single inheritance".
<p>Nel tuo contesto si parla di una generica classe che può ereditare da un solo padre, pertanto io lo tradurrei semplicemente come "classe", a meno che tu non abbia ulteriori elementi. La frase potrebbe suonare così: "In C# c'è una limitazione per cui una classe può ereditare solo da un'unica classe base".<p>
<a href="http://bit.ly/17TM6QW">Link a wikipedia</a>
<p>PS: mio marito è ingegnere del software e non ha mai sentito parlare di classmate o compagni di classe...</p>
http://www.tutorialpc.it/cplus13.asp
http://en.wikipedia.org/wiki/C_Sharp_(programming_language)
I imagine that they are just two classes inherited from the same base class and as such are "compagni di classe". that is assuming they are classes and not variables declared within the same class (I doubt this).