Computer Science, asked by PuneetSahu5045, 1 year ago

Given the following piece of code:

public class School{ public abstract double numberOfStudent(); }

which of the following statements is true?
A.The keywords public and abstract cannot be used together.
B.The method numberOfStudent() in class School must have a body.
C.You must add a return statement in method numberOfStudent().
D.Class School must be defined abstract.

Answers

Answered by Neeraj723
6
Hii dear here is your answer


option c is the correct answer

Hope it's help u
Answered by Anonymous
0
______✨ HEY MATE ✨_____

➡️Option (C) is the right answer ✔️

<marquee>✌️ I THINK IT HELPED YOU ✌️
Similar questions