CASE STUDY2 - DFP30243 - OOP - Sesi1 - 2022 - 2023
CASE STUDY2 - DFP30243 - OOP - Sesi1 - 2022 - 2023
INFORMATION
TECHNOLOGY & DFP30243 OBJECT ORIENTED
COURSE
COMMUNICATION PROGRAMMING
DEPARTMENT
ASSESSMENT METHOD CASE STUDY 2
TOPIC
4.0 Inheritance and Polymorphism
CLO2
NAME : __________________________________________
REGISTRATION NO. : __________________________________________ TOTAL /25
INSTRUCTION
As we know every animal has a different sound. For example, Dog, Cat and Duck will have own
sound method implementation as shown below. Develop a program to illustrate inheritance and
polymorphism concept in the diagram below. [CLO2, P4] (25 marks)
Expected Output:
Example Codes:
class Animal {
public void sound() {
System.out.println("The animal makes a sound");
}
}
animal.sound();
dog.sound();
cat.sound();
duck.sound();
}
}
Assessment Rubric:
Required 5 4 3 2 1 Marks
Element
1) variable and Highly detailed Good detailed Detailed but Few Detailed. No details.
object declaration moderately 3-4 variables Only 1-2
detailed variables
2) Programming Very good Good program Moderate Program Program
Logic: program compiles, no program compiles, compiles and
i. selection compiles, no logic error and compiles, no minimal logic display
statement logic error and exceed logic error and error and meet incorrect error,
implementation exceed specification meet most of most of minimal logic
specification specification specification error and
failed to meet
specification
3) Programming Very good Good program Moderate Program Program
logic: program compiles, no program compiles, compiles and
i. Repetition compiles, no logic error and compiles, no minimal logic display
statement logic error and exceed logic error and error and meet incorrect error,
implementation exceed specification meet most of most of minimal logic
specification specification specification error and
failed to meet
specification
4) Programming Very good Good program Moderate Program Program
Logic: program compiles, no program compiles, compiles and
a. Display related compiles, no logic error and compiles, no minimal logic display
information based logic error and exceed logic error and error and meet incorrect error,
on input values exceed specification meet most of most of minimal logic
specification specification specification error and
failed to meet
specification
5) Programming 100% follow 80% follow the 50% follow the 30% follow the 10% follow the
Style and the writing writing format writing format writing format writing format
documentation: format and and and and and
documentation documentation documentation documentation documentation
-naming convention
-indentation