Professional Documents
Culture Documents
Submitted to:
Name: S A M Matiur Rahman
Associate professor & associate head
Department of Software Engineering
1
Answer to the question no:1
class Bicycle {
// Data Members
private String ownerName;
private String tagNo;
//Constructor: Initialzes the data member
public void Bicycle( ) {
ownerName = "Unknown";
tagNo = "Unassigned";
}
......
}
Answer to the question no:2
class Bicycle {
......
public void setTabNo(String number) {
tagNo = number;
}
......
}
class Bicycle {
......
Public String getTagNo( ) {
return tagNo;
}
......
}