Write a class that has marks ,grade and gpa as data member. A constructor with 3 parameters initializes data members with the given values and member function show displays the values of data members. Create 3 objects and display the values.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question
Perform in C++
Write a class that has marks ,grade and gpa as data
member. A constructor with 3 parameters initializes
data members with the given values and member
function show displays the values of data members.
Create 3 objects and display the values.
Transcribed Image Text:Write a class that has marks ,grade and gpa as data member. A constructor with 3 parameters initializes data members with the given values and member function show displays the values of data members. Create 3 objects and display the values.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT