The machine language treats a message as bits while object-oriented programming
ID: 3543622 • Letter: T
Question
The machine language treats a message as bits while object-oriented programming language treats every message as an object. Do you agree with this statement? Why or why not? Explain the characteristics unique to object-oriented programming and how it differs from other linear programming languages.
Using an Internet search engine, find at least three definitions for object-oriented programming. Document the three definitions gathered and then present them as a single definition in your own words.
Explanation / Answer
I am not an expert on the subject, but I have taken several programming classes so I may be able to give you some guidance on your question. For the first statement, do I agree? Well, sort of and I will explain. Object-oriented languages are considered higher level languages, while machine code is a lower level (residing "closer" to the machine). The thing is though that for object-oriented languages to work they have to be compiled. The compiler or assembler (CLR for .NET, JVM for Java) translates the high-level object-oriented code into machine code.
So the statement is kind of like comparing apples to oranges. Machine language is linear in that it is executed line by line by line. Object-oriented creates objects (what a surprise) in classes and packages that can be reused. You can have a Car class, for example, and if it is written true to the language, you can create an infinite number of Car objects with methods contained in that one class. In linear programming, you cannot "reuse" code in this manner. Like I said, it executes line by line by line....
I really hope I didn't confuse you! It is an abstract concept and difficult for many to grasp. If you need further clarification, please let me know!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.