One important difference between languages that provide syntax to encapsulate th
ID: 3710505 • Letter: O
Question
One important difference between languages that provide syntax to encapsulate the definition of user defined data types is whether the syntax requires the specification details to be separated from the implementation details. Ada requires such a separation. In Ada, the specification information must be placed in the package specification and the implementation details in the package body. Where must the representation details be placed?
Compare Ada with both C++ and Java in this regard. Take and defend a position as to whether requiring separation of the specification and representation information for a data type is a good language design decision.
Explanation / Answer
Solution:
The representation of the details are placed in the package body in ADA,
The package here is divided into two parts which are;
package specifications and package body.
ADA is not pure OOP language. Thus, it is good to seperate the specification and representation information.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.