Wednesday, November 25, 2009

here they are Semantics.

speaking about semantics...heres a short example.

class car {
int wheels = 4;
string engine;
}

car mybike = new car();
mybike.wheels = 2;
mybike.engine = null;

The code is error-free, but is semantically incorrect. It reflects poorly on the programmer





No comments: