Contact Number Call Girls Service In Goa 9316020077 Goa Call Girls Service
Ee java lab assignment 2
1. Kalyani Govt. Engg. College
EE/6th
Sem/OOP-LAB (EE-694(c))/Assignment - 2
Due Date: 8th
Mar '13
Class and Objects
1. Create a class Box having fields length, breadth, height and methods getdata() and displaydata().Make two
objects of the class access fields by the methods.
2. Modify the above program using constructors and overloaded constructors. Create overloaded constructors
to assign default values (say -1.00) to each data members, to assign some initial values, to make a cube (only
one parameter).
3. Design a class to represent a bank account. Include the following data members:-depositor_name, acc_no,
acc_balance. Methods:-To assign initial values, To deposit an amount, To check balance,To display Depositor
name & present balance. Make objects of the class and demonstrate the action of the methods.
4. Modify the above program to incorporate a constructor to provide initial values.
5. Write different java code to illustrate the following properties of java: static keyword, finalizer method, this
keyword.
Inheritance: Extending a class
6. Write a program in Java to demonstrate method overriding.
7. A computer institute wishes to keep a database of its employees as shown in the below figure. Specify all
the classes and define methods to create the database and retrieve information as and when required.