Question:
A new software engineer has joined Axistex Ltd. The systems analyst informs him that the organisation works with different operating system. The HR department works with Windows Vista, the payroll department works with Solaris while the others work with Linux. However, all the departments are also using software developed in Java. The systems analyst who has never worked with Java before was wondering whether Java will be compatible with the various platforms.
i) Explain briefly what the Java software engineer response to the systems analyst should be.
ii) Illustrate your explanation using an appropriate diagram.
b) Define the following terms with appropriate Java example:
i) Data encapsulation
ii) ‘protected' keyword
iii) ‘final' keyword
iv) instantiation.
c) In the context of "constructors", answer the following questions:
i) State any 2 features of "constructors".
Describe the concept of "constructor chaining" with help of a suitable Java code.