-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTut30.java
More file actions
57 lines (52 loc) · 1.03 KB
/
Tut30.java
File metadata and controls
57 lines (52 loc) · 1.03 KB
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
package tutorial;
//Annotations in java
// annotations start with /** double asterisk sign you can generate the java doc
/**
* Class Library is very Usefull to deal with Library Function
*
* @author Prathamesh
* @version 1.1
* @since 2012
* <p>
* You can implement to get the Access to the virtual Library
* </p>
*
*/
class Tut30 {
public int id;
public String bookname;
public String Author;
public String Libname;
/**
* Constructor for Library
*
* @param id
* @param bookname
* @param Author
*/
public Tut30(int id, String bookname, String Author) {
this.id = id;
this.Author = Author;
this.bookname = bookname;
}
@Override
public String toString() {
return "Library [id=" + id + ", bookname=" + bookname + ", Author=" + Author + "]";
}
/**
* Setting the Library Name
*
* @param Libname
*/
public void setLibraryName(String Libname) {
this.Libname = Libname;
}
/**
* Returns the Library Name
*
* @return
*/
public String getLibname() {
return Libname;
}
}