Explain the concept of type consistency of a path expression.

What will be an ideal response?



S.Address.StName


Type consistency means that the type of any pre?x in a path expression must be consistent with the use of the next attribute. For example, earlier we used the path expression to ?nd street names where people named Smith live. Type consistency here means
that the type of the variable S is consistent with the use of the attribute Address and the type of the pre?x S.Address is consistent with the use of the attribute StName. Type consistency of this expression follows from the following facts:
1. the variable S refers to an object of type Person;
2. the type Person has an Address attribute;
3. the subexpression S.Address returns a value of type Address;
4. the type Address has an StName attribute.

Computer Science & Information Technology

You might also like to view...

The application prototyping approach to software development gives users what they want by employing principles used in other engineering disciplines, i.e. build a working model and use it. Critically discuss the arguments for and against this approach showing how the software development life cycle is consequently affected. What are the necessary conditions for it to be successful and what are the dangers/problems that could arise?

What will be an ideal response?

Computer Science & Information Technology

What are international export controls?

What will be an ideal response?

Computer Science & Information Technology

________ is a section of code within a process that requires access to shared resources and that must not be executed while another process is in a corresponding section of code.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The Text property of a check box should be entered using ____.

A. all lowercase letters B. all uppercase letters C. sentence capitalization D. book capitalization

Computer Science & Information Technology