Added a new Examples folder with modified Examples/java files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4f2a579d6d
commit
311ddbc2bf
78 changed files with 3668 additions and 0 deletions
45
Examples/doxygencomments/java/class/example.h
Normal file
45
Examples/doxygencomments/java/class/example.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/** \file example.h
|
||||
comments on example.h */
|
||||
|
||||
/*! This is describing class Shape
|
||||
\author Bob
|
||||
*/
|
||||
|
||||
class Shape {
|
||||
public:
|
||||
Shape() {
|
||||
nshapes++;
|
||||
}
|
||||
virtual ~Shape() {
|
||||
nshapes--;
|
||||
};
|
||||
double x, y; /*!< Important things */
|
||||
void move(double dx, double dy);
|
||||
virtual double area(void) = 0; /*!< \return the area */
|
||||
virtual double perimeter(void) = 0; /*!< \return the perimeter */
|
||||
static int nshapes;
|
||||
};
|
||||
/*! This is describing class Circle */
|
||||
class Circle : public Shape {
|
||||
private:
|
||||
double radius;
|
||||
public:
|
||||
Circle(double r) : radius(r) { };
|
||||
virtual double area(void);
|
||||
virtual double perimeter(void);
|
||||
};
|
||||
|
||||
/*! This is describing class square */
|
||||
class Square : public Shape {
|
||||
private:
|
||||
double width;
|
||||
public:
|
||||
Square(double w) : width(w) { };
|
||||
virtual double area(void);
|
||||
virtual double perimeter(void);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue