Question: Intro to java class chapter 1. Define a class BOOK with the following members Private members Bno of type int Bname of type String Author

Intro to java class chapter
 Intro to java class chapter 1. Define a class BOOK with

1. Define a class BOOK with the following members Private members Bno of type int Bname of type String Author of type String Price of type float Public members void Enter0 member function to enter the values of data members void Display0 member function to display the values of data members int RBno0 member function that returns the value of Bno String RBname) member function that returns the value of Bname Write a program which creates an object BOOK Takes the input of all fhelds using Enter) method Displays all the fields using Display0 method . Display >if Bno>1000, else displays ceBname is an Old Book">> 2. Define a class CANDIDATE with the following members Private members Cno of type int Cname of type String Score of type int Public members void EnterO method to enter the values of data members void Display0 method to display the values of data members void CheckScore) method that displays "Excellent if the value of Score>90, "Good" if score> 80, else displays Average Write a program which uses the above three methods to create an object, display the details of the candidate and uses CheckScoreD method to display the kind of score. 3. Define a class ACCOUNT with the following members Private members

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!