Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want to solve these questions from this uml. -activities > Course p4 id: String name: String level int Course(String, String,int) Course(String, String, int, Activityd)

I want to solve these questions from this uml. image text in transcribed
image text in transcribed
-activities > Course p4 id: String name: String level int Course(String, String,int) Course(String, String, int, Activityd) addActivity (Activity):void setActivities(ActivityI):void equals(Course):boolean toString(:String > CA Activity p1 code: int max_Student_Number: int crdH_A: int of Activity(int,int,int) getResources():String getMax_Student_Number():int toString():String equals(Activity):boolean 0... > Lab p2 oStype: String software: String Lab(int, int, int, String) getResources(): String toString():String equals(Lab):boolean > Lecture p2 Stype: String Lecture(int,int,int) getResources():String toString():String a) Give the name of the relation between class Course and class Activity? b) Give the name of the relation between class Activity and class Lab? c) Give the name of a special behavior having the same name as the name of class? d) Why the behavior getResources() in class Activity is declared Abstract? e) Both classes "Lab" and "Lecture" possess one function with same name, but each having different behavior. Give the name of such java concept? f) Why Class Activity is declared Abstract

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions