6. Write an abstract class “Student” that has the attribute “name”, “id”, “cgpa”, totalFees. “Student” class has an abstract function fees(totalFees), concrete function toString(). The fees function varies student to student. If any student has CGPA more than 3.90 then he/she study with full free. If any student has CGPA more than 3.50 then he/she get the 50% waiver of the total fees. The rest of the student have to pay the total fees. Design a JAVA class “CurrentStudent” that can be used in the “Student” class as local inner class to rewrite the given function. Also implement the system in main method with appropriate objects.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 28SA
icon
Related questions
Question

6. Write an abstract class “Student” that has the attribute “name”, “id”, “cgpa”, totalFees.
“Student” class has an abstract function fees(totalFees), concrete function toString().
The fees function varies student to student. If any student has CGPA more than 3.90
then he/she study with full free. If any student has CGPA more than 3.50 then he/she
get the 50% waiver of the total fees. The rest of the student have to pay the total fees.
Design a JAVA class “CurrentStudent” that can be used in the “Student” class as local
inner class to rewrite the given function. Also implement the system in main method
with appropriate objects.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Software Development
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage