LAB - 3 Revision LAB

JAVA LAB Program

1) Revise Concept of Static and Non-Static Properties of Class

2) Revise Concept of Initializer and Class Initializer Block

3) Revise Concept of "this".

4) Revise Concept of Constructor Overloading

Program:
Create Class Book with attributes like bookid, bookname, authorname, price etc.

Implement some methods like printBookInfo, printPrice…etc using appropriate parameter and return value.

Write 3 Constructors and implement fundamentals of Overloading.

Write one methods which counts no of objects which are created in program and print it.

No comments:

Post a Comment