Create a class Book that contains instance variables like BKName, BKId and BKAuthor, a
parameterized constructor to initialize its instance variables, a method BKUpdateDetails(String name,
int id, String author), that accepts new values for name, Id and author as parameters and updates
the corresponding instance variable values of that object and another method BKDisplay() to display
the book details. Create a class BookDemo and provide main method for instantiate a Book object,
display the original book details, update its details with new values, and display the updated book
details
Design a class named Employee with following properties: name, employee ID and salary. Add
necessary constructors to initialize the data members. Add two methods, (1) Update(salary) to modify
the salary for the employee object and (2) Display() to print the employee details on screen. In main,
read an employee’s details from user, construct employee object from the user input, update
employee’s salary by calling appropriate function and display the employee’s details.
Create a class Vehicle with the following attributes: Registration Number, Model, Manufacturer,
Manufacturing Date, Engine number and Colour. Add a behaviour to change the colour and display
the updated Vehicle details.
Create the Class Book with the following attributes: Book ID, Title, Authors, Unit Price. Print the
current details of the book. Add a behaviour to modify the price and display the updated book details.
Display the total Amount to be paid for each Book, using unit price & 12% tax. Implement using OO
concepts.
Create the class Employee with the following attributes: Emp ID, Name, Designation, Project ID and
Phone Number. Print the Current details of the employee. Add a behaviour to modify the projectID.
And display the updated employee details.
Create a class Distance consists of 2 integer data members as feet and inch. Define a add() method
to add 2 Distance objects which are passed as arguments. Another add() method passed with single
Distance object to add the invoked object with the passed object. Write a getInput() method to
receive the input from user and check the input, if the user gives negative input or inch value greater
than 11 show the error message and ask the user to enter it again. In main, show the result of adding
2 distance object by calling both add functions.
Create a class for Student with the following attributes: Student ID, Name, CourseID, Gender {male/female} and Phone Number. (Use enumeration data type for Gender) Add constructors to initialize data members. Print the Current details of the Student. Add a behaviour to modify the phone number and display the updated details.
Create an Account class (acctNumber, acctName, branch, balance). Write constructors – default
constructor, constructor(acctNumber). Create an object of Account using constructor(acctNumber)
assign the other values using separate functions of each property. Display account number and
balance in the main.
Create a class Customer with properties – customerid (integer), name, age, phone. Add necessary
constructors to initialize the data members. Create an object of Customer and initialize the data using
parametrized constructor. Print the customer object data in the main class.
Create a class Book that contains instance variables like BKName, BKId and BKAuthor, a
parameterized constructor to initialize its instance variables, a method BKUpdateDetails(String name,
int id, String author), that accepts new values for name, Id and author as parameters and updates
the corresponding instance variable values of that object and another method BKDisplay() to display
the book details. Create a class BookDemo and provide main method for instantiate a Book object,
display the original book details, update its details with new values, and display the updated book
details