Ask Question

EX 4.4 List some attributes and operations that might be defined for a class called Course that represents a college course (not a particular offering of a course, just the course in general).

+5
Answers (1)
  1. 17 November, 22:13
    0
    It can be seen below.

    Explanation:

    In order to create a class, we need to specify the attributes and methods such that this specification will be enough to handle the requirements of the class. If we would like to create a class called Course, we need to think about its real world situations. Following attributes and operations can be a good fit for a Course class.

    Attributes can be course code, course name, list of students enrolled for the course, the department of the course, and number of credits of the course.

    Operations can be setters and getters for the attributes, adding students to the course, removing students from the course.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “EX 4.4 List some attributes and operations that might be defined for a class called Course that represents a college course (not a ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers