On 8/29/13, Jerry Stuckle <jstuckle@attglobal.net> wrote:
Please show how you can do inheritance and polymorphism in C.
Not so good finish. Looking at the above, we could say "use an
old/original preprocessor"? Or do that preprocessors work by hand?
By the way, mathematically speaking, objects are machines.
Maybe mathematically speaking, but we're talking programming here. In
programming, variables have state. Functions have behavior. Objects
have both state and behavior.
Mathematically, we make ... declarations or assertions :)
0A This byte of ram we shall call a variable.
0B This byte of ram we shall call a pointer.
0C This byte of ram shall be the program start instruction.
It is not only reasonable, but useful to some people learning, to say
that "a programming object ... is like a machine".
So let me "fix" the statement:
"Mathematically speaking, objects are machines; programmatically
speaking, objects are like machines."
That wasn't so hard was it?
Lets be flexible in our understanding of each other, when doing so
causes no problem,
Zenaan