forked from mohammedabdulbari/Java-SE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Book.java
59 lines (47 loc) · 969 Bytes
/
Book.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/** @author Abdul Bari
* @version 2.0
* @since 2015
**/
package javadocdemo;
/**
*
* @author abdulbari
*
* Class for Library Book
*/
public class Book
{
/**
* @value 10 default value
*/
static int val=10;
/**
* Parametrized Constructor
* @param s Book Name
*/
public Book(String s){
}
/**
* Issue a Book to a Student
* @param roll roll number of a Student
* @throws Exception if book is not available, throws Exception
*/
public void issue(int roll) throws Exception{
}
/**
* Check if book is available
* @param str Book Name
* @return if book is available returns true else false
*/
public boolean available(String str){
return true;
}
/**
* Get Book name
* @param id book id
* @return returns book name
*/
public String getName(int id){
return "";
}
}