In Java, implement Abstraction in the grading system. Include three different implementation methods in solving the grade. Kindly follow the example of coding below (abstract class should be included): Example:  Prelim 30 Midterm 30  Endterm 40 --------------------- Formula: (Prelim+ Midterm + Endterm)/3

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

In Java, implement Abstraction in the grading system. Include three different implementation methods in solving the grade. Kindly follow the example of coding below (abstract class should be included):

Example: 

Prelim 30

Midterm 30 

Endterm 40

---------------------

Formula: (Prelim+ Midterm + Endterm)/3

------------------------------

//abstract parent class
abstract class Animal{
//abstract method
public abstract void sound ();
//Dog class extends Animal class
public class Dog extends Animal{
public void sound (){
System.out.println("Woof");
}
public static void main(String args[]){
Animal obj
obj.sound ();
}
}
= new Dog();
Output:
Woof
Transcribed Image Text://abstract parent class abstract class Animal{ //abstract method public abstract void sound (); //Dog class extends Animal class public class Dog extends Animal{ public void sound (){ System.out.println("Woof"); } public static void main(String args[]){ Animal obj obj.sound (); } } = new Dog(); Output: Woof
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage