Object oriented concepts UE Past Papers Questions.


View All Courses

(133) Question Category: Short answers

Very briefly explain the following 

  1. Class and Object
  2. Constructors and their types

Answer / Solution

UNSOLVED

(134) Question Category: Short answers

Consider a class Person that consists of instance variables- name, age and gender. Instance methods - setName, getName and getAge. Class method- getAverageAge.

  1. Graphically represent this calss using UML notation
  2. Write a constructor that initialize all instance variables
  3. Using Java language , create an object whose initial values for name, age and gender are Juma, 28 and Male respectively.

Answer / Solution

UNSOLVED

(135) Question Category: Short answers

  • What is use case diagram?
  • Briefly describe the aim of inclusion and extension in the use case diagram.

Answer / Solution

UNSOLVED

(136) Question Category: Short answers

Describe the messages and methods in OOP.

Answer / Solution

UNSOLVED

(137) Question Category: Short answers

Consider the following scenarios the outline the objects ( at most three) and their interactions in terms of messages ( at least two)  and arguments

  • A passenger buying a bus ticket
  • A student borrowing a book in library
  • A lecturer deliverign his/her lecture to a class of students

Differentiate the sequence and collaboration diagram. Draw the sequence and collaboration diagrams that represents the scenario above.

Answer / Solution

UNSOLVED

View All Courses
News & Updates | Recently
Recent Updates
questions

2024-05-02: questions

Questions Uploaded on 2024-05-02


questions

2024-03-29: questions

Questions Uploaded on 2024-03-29


questions

2024-03-19: questions

Questions Uploaded on 2024-03-19

Dismissible in 10 seconds