11-21-2011, 02:18 AM
Object Oriented Programming (CS304)
Assignment No.2
BY LADAK
Assignment:
In Assignment No.1 you developed Object Oriented Model for Library Management System, now you have to give its practical prototype in c++ mean you have to provide the solution of your first assignment and have to implement it in the form of classes in c++ also note that you don’t have to give actual implementation in c++ but simple stereotype (sketch) in the form of c++ code mentioning class names their parameters and functions with access specifiers you also have to show the relationship between classes in the form of inheritance mentioning the name of class/classes from which they have been derived in proper c++ syntax.
class Library
{
Private:
char name[50];
char interface[30];
double space[30];
public:
void store detail of data();
void add();
void Search();
void Return();
void Borrow();
}
class Administrator : public Library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
class staff : public library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
class student : public library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
Assignment No.2
BY LADAK
Assignment:
In Assignment No.1 you developed Object Oriented Model for Library Management System, now you have to give its practical prototype in c++ mean you have to provide the solution of your first assignment and have to implement it in the form of classes in c++ also note that you don’t have to give actual implementation in c++ but simple stereotype (sketch) in the form of c++ code mentioning class names their parameters and functions with access specifiers you also have to show the relationship between classes in the form of inheritance mentioning the name of class/classes from which they have been derived in proper c++ syntax.
class Library
{
Private:
char name[50];
char interface[30];
double space[30];
public:
void store detail of data();
void add();
void Search();
void Return();
void Borrow();
}
class Administrator : public Library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
class staff : public library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
class student : public library
{
Private:
Char name[50];
Char Gender[50];
Char id[50];
Char address[50];
Public:
void Login();
void Logoff();
void search();
void Add();
void Borrow();
void return();
}
