Concepts of Programming Languages
sean pound
(Sean Pound)
#1
Review Questions 519
REVIEW QUESTIONS
- What are the two kinds of abstractions in programming languages?
- Define abstract data type.
- What are the advantages of the two parts of the definition of abstract data
type?
- What are the language design requirements for a language that supports
abstract data types?
- What are the language design issues for abstract data types?
- Explain how information hiding is provided in an Ada package.
- To what is the private part of an Ada package specification visible?
- What is the difference between private and limited private types
in Ada?
- What is in an Ada package specification? What about a body package?
- What is the use of the Ada with clause?
- What is the use of the Ada use clause?
- What is the fundamental difference between a C++ class and an Ada
package?
- From where are C++ objects allocated?
- In what different places can the definition of a C++ member function
appear?
- What is the purpose of a C++ constructor?
- What are the legal return types of a constructor?
- Where are all Java methods defined?
- How are C++ class instances created?
- How are the interface and implementation sections of an Objective-C
class specified?
- Are Objective-C classes types?
- What is the access level of Objective-C methods?
- What is the origin of the syntax of method calls in Objective-C?
- When are constructors implicitly called in Objective-C?
- Why are properties better than specifying an instance variable to be
public?
- From where are Java class instances allocated?
- Why does Java not have destructors?
- Where are all Java methods defined?
- Where are Java classes allocated?
- Why are destructors not as frequently needed in Java as they are in C++?