in case of that:
1- Everything is not an object, like primitives and immutable types like DateTime or RgbColor, they are structs and value type and live on stack, not heap. but they can be boxed to an object. boxing/unboxing is not recommended tho.
2- Objects can call each other function, and get the result without any messages. (what do you mean by mesaage passing exactly?)
3- Everything in runtime lives on memory and has it's own memory, it's not just for objects.
4- objects yes, primitives no. Like int or DateTime or SyntaxToken which are not instances of classes.
5- Nope, classes can extend their behaviour with shapes (type classes) if I got what you said correctly
6- C# programs have an entry point. C# script apps does not have (which are still OOP)
1. No longer OOP then 2. That *IS* what message passing is, calling methods is like remote procedure calls and waiting for results 3. wat 4. same as 1 5. This does not conflict with his statement 6. I don't think they could be considered OOP without an entry point, more like procedural with objects
Обсуждают сегодня