Computer Science, asked by hirabbaxi555, 6 months ago

We have to calculate the percentage of marks obtained in three subjects (each out of
100) by student A and in four subjects (each out of 100) by student B. Create an
abstract class 'Marks' with an abstract method 'getPercentage'. It is inherited by two
other classes 'A' and 'B' each having a method with the same name which returns the
percentage of the students. The constructor of student A takes the marks in three
subjects as its parameters and the marks in four subjects as its parameters for student
B. Create an object for eac of the two classes and print the percentage of marks for
both the students.

Answers

Answered by dangergamer284
0

Answer:

wrh

rahfsh

gf

srh

rhs

Stu

rrwh

rwh

rwh

wtu

tu

wrj

jrw

wru

ru

rwuwrj

itw

iwt

jrw

wrj

wtj

wtjtw

kjtw

twj

twj

twj

etj

wtj

rwjrwj

its

twj

wjt

twj

jt

tw

ure

rj

rw

jrwj

twj

rj

twj

the

jw

tjr

rj

wr

rjw

rwj

rwj

rjwjrw

jt

jt

7th

we

jej

he

wjt

the

twj

twj

etj

jtw

ure

Stu

rwh

rwh

and

bad

bad

afb

tan

Eva

wrjnrh

hgs

sfb

dgn

hdmdg

jjg

dg

fs

jsf

fj

dy

ng

sfnjts

gsj

tan

afj

nfs

fab

arh

rah

that

hsrh

has

arh

rwh

raj

ra

aeheah

dah

db

adj

tan

arj

ends

afj

sfn

fsn

fsn

tan

sfn

rj

fsm

and

and

afn

afn

afn

Dan

fs

jaf

ha

stjr

what

jts

stj

jst

tsj

tks

sfjf

jfjs

fsj

jg

ydjtd

nf

sgn

fsn

gdn

Similar questions