Define a primitive data type: Difference between revisions

Content added Content deleted
m (→‎{{header|C++}}: lang tag)
m (→‎{{header|Java}}: lang tag; (maybe this example is not so correct, but anyway there's no way of doing operator overloading like c++))
Line 472: Line 472:
{{incorrect|Java|This doesn't actually create a primitive in Java. Also, many of the methods and constructors are the bound checks.}}
{{incorrect|Java|This doesn't actually create a primitive in Java. Also, many of the methods and constructors are the bound checks.}}


public class TinyInt{
<lang java> public class TinyInt{
int value;
int value;
Line 550: Line 550:
return value + "";
return value + "";
}
}
}
}</lang>


=={{header|Modula-3}}==
=={{header|Modula-3}}==