


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Object Oriented Programming, Fundamental Concept, Inheritance and Provide, Simple Descriptive, Simple Code that Demonstrates, Relationship, Eclipse Project, Implement Encapsulation, Auto Sales, Constructor with Parameters are some points of course of Advanced Application Development.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Exam Code(s) 2BF Exam(s) BSc in Business Information Systems Year 2 Module Code(s) MS Module(s) Advanced Application Development II Paper No. Repeat Paper N Special Paper N External Examiner(s) Dr. Danail Ivanov Internal Examiner(s) Dr. Christopher Duke, Mr Martin Hughes
be awarded for commented code. Marks will be deducted for code that does not adhere to standard Java and JavaBean naming conventions. Duration 2 Hrs No. of Answer books Requirements : Handout MCQ Statistical Tables Graph Paper Other Material No. of Pages 4 Department(s) Business Information Systems
Question 1: 30 Marks Part A 6 Marks Inheritance is a fundamental concept in Object Oriented programming. List the two most common reasons to use inheritance and provide a simple descriptive example of each. Part B 12 Marks Create a new package in the src folder of your Question1 Eclipse project called ie.nuigalway.is_a and write some simple code that demonstrates the two ways in which an IS-A relationship can be created in Java. In your answerbook, provide a brief explanation of how your code demonstrates an IS-A relationship. Part C 6 Marks Create a new package in the src folder of your Question1 Eclipse project called ie.nuigalway.has_a and write some simple code that demonstrates a HAS-A relationship. In your answerbook, provide a brief explanation of how your code demonstrates a HAS-A relationship. Part D 6 Marks With reference to class members (methods and instance variables), explain how access modifiers can be used to implement encapsulation.
Question 3: 35 Marks You have been taken on as a contract programmer at Agile Developers Ltd. The company is currently developing a student record system for NUI Galway. Your task is to develop the Student class and your manager has provided you with the JUnit test class below. Your task is to write the production code that will make all of the tests pass. import junit.framework.TestCase; public class StudentTest extends TestCase { /**