Professional Documents
Culture Documents
Assignment 3
Assignment 3
1. Firstly, write a C++/JAVA, C code in a directory which finds the largest string from an
array of strings.
#include<iostream>
#include<string>
*
* This project helps user to understand Inheritance and Vrtual Function
*
*
*
*/
The class Base is used here to find the largest string among array of strings
*/
class Base
public:
Base()
{
}
/**
@return to find the largest string among array of strings
*/
{
string temp;
{
{
}
}
cout << "BASE = Largest String is " << temp << " -> Length: " << Max << endl;
}
};
public:
/**
@return to find the largest string among array of strings
*/
{
string temp;
{
{
}
}
cout << "CHILD = Largest String is " << temp << " -> Length: " << Max << endl;
}
};
int main()
Base obj1;
Derived obj2;
obj1.Find_Max(str, length);
obj3->Find_Max(str, length);
2) The comments are written according to the format of doxygen.
For example:
*
*/
It can be used to write description or main page explanation.
b) To create UML diagrams, follow the following steps in the terminal:
$ doxygen -g
Output:
doxygen Doxyfile
$ doxygen Doxyfile
we will get html and latex files. We have to choose any one of them to see the documentation.