Wednesday 19 August 2015

Categorize the following relationships into generalization, aggregation or association

A country has a capital city


A dining philosopher uses a fork


A file is an ordinary file or a directory file


Files contains records


A polygon is composed of an ordered set of points


A drawing object is text, a geometrical object, or a group


A person uses a computer language on a object


Modems and keyboards are input/output devices


Classes may have several attributes


A person plays for a team in a certain year


A route connects two cities


A student takes a course from a professor


9 comments:

  1. tuu bagwan ha bhai thankuu yaar

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. bhagwaan hain bhaiiiiiiiiiiiiiiiiiiiii

    ReplyDelete
  4. bhai thank you iska bi answer de yr bhai
    write a program for different types of object on the basis of their lifetime and visibility in oop

    ReplyDelete
  5. A relationship can be association or generalization

    ReplyDelete