diff --git a/deuxiemeEssay/A.class b/deuxiemeEssay/A.class new file mode 100644 index 0000000..6d478d2 Binary files /dev/null and b/deuxiemeEssay/A.class differ diff --git a/deuxiemeEssay/A.ctxt b/deuxiemeEssay/A.ctxt new file mode 100644 index 0000000..b2aca4d --- /dev/null +++ b/deuxiemeEssay/A.ctxt @@ -0,0 +1,10 @@ +#BlueJ class context +comment0.target=A +comment0.text=\r\n\ Write\ a\ description\ of\ class\ A\ here.\r\n\r\n\ @author\ (your\ name)\r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n +comment1.params= +comment1.target=A() +comment1.text=\r\n\ Constructor\ for\ objects\ of\ class\ A\r\n +comment2.params=y +comment2.target=int\ sampleMethod(int) +comment2.text=\r\n\ An\ example\ of\ a\ method\ -\ replace\ this\ comment\ with\ your\ own\r\n\r\n\ @param\ \ y\ \ a\ sample\ parameter\ for\ a\ method\r\n\ @return\ \ \ \ the\ sum\ of\ x\ and\ y\r\n +numComments=3 diff --git a/deuxiemeEssay/A.java b/deuxiemeEssay/A.java new file mode 100644 index 0000000..65eb562 --- /dev/null +++ b/deuxiemeEssay/A.java @@ -0,0 +1,33 @@ + +/** + * Write a description of class A here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class A +{ + // instance variables - replace the example below with your own + private int x; + + /** + * Constructor for objects of class A + */ + public A() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * + * @param y a sample parameter for a method + * @return the sum of x and y + */ + public int sampleMethod(int y) + { + // put your code here + return x + y; + } +} diff --git a/deuxiemeEssay/B.class b/deuxiemeEssay/B.class new file mode 100644 index 0000000..bbe51bd Binary files /dev/null and b/deuxiemeEssay/B.class differ diff --git a/deuxiemeEssay/B.ctxt b/deuxiemeEssay/B.ctxt new file mode 100644 index 0000000..d8c1e82 --- /dev/null +++ b/deuxiemeEssay/B.ctxt @@ -0,0 +1,10 @@ +#BlueJ class context +comment0.target=B +comment0.text=\r\n\ Write\ a\ description\ of\ class\ B\ here.\r\n\r\n\ @author\ (your\ name)\r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n +comment1.params= +comment1.target=B() +comment1.text=\r\n\ Constructor\ for\ objects\ of\ class\ B\r\n +comment2.params=y +comment2.target=int\ sampleMethod(int) +comment2.text=\r\n\ An\ example\ of\ a\ method\ -\ replace\ this\ comment\ with\ your\ own\r\n\r\n\ @param\ \ y\ \ a\ sample\ parameter\ for\ a\ method\r\n\ @return\ \ \ \ the\ sum\ of\ x\ and\ y\r\n +numComments=3 diff --git a/deuxiemeEssay/B.java b/deuxiemeEssay/B.java new file mode 100644 index 0000000..d1a8c87 --- /dev/null +++ b/deuxiemeEssay/B.java @@ -0,0 +1,33 @@ + +/** + * Write a description of class B here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class B extends A +{ + // instance variables - replace the example below with your own + private int x; + + /** + * Constructor for objects of class B + */ + public B() + { + // initialise instance variables + x = 0; + } + + /** + * An example of a method - replace this comment with your own + * + * @param y a sample parameter for a method + * @return the sum of x and y + */ + public int sampleMethod(int y) + { + // put your code here + return x + y; + } +} diff --git a/deuxiemeEssay/README.TXT b/deuxiemeEssay/README.TXT new file mode 100644 index 0000000..7342ea5 --- /dev/null +++ b/deuxiemeEssay/README.TXT @@ -0,0 +1,12 @@ +------------------------------------------------------------------------ +This is the project README file. Here, you should describe your project. +Tell the reader (someone who does not know anything about this project) +all they need to know. The comments should usually include at least: +------------------------------------------------------------------------ + +PROJECT TITLE: +PURPOSE OF PROJECT: +VERSION or DATE: +HOW TO START THIS PROJECT: +AUTHORS: +USER INSTRUCTIONS: diff --git a/deuxiemeEssay/package.bluej b/deuxiemeEssay/package.bluej new file mode 100644 index 0000000..cdd6338 --- /dev/null +++ b/deuxiemeEssay/package.bluej @@ -0,0 +1,39 @@ +#BlueJ package file +editor.fx.0.height=739 +editor.fx.0.width=816 +editor.fx.0.x=402 +editor.fx.0.y=42 +objectbench.height=93 +objectbench.width=760 +package.divider.horizontal=0.6 +package.divider.vertical=0.8 +package.editor.height=393 +package.editor.width=670 +package.editor.x=467 +package.editor.y=101 +package.frame.height=600 +package.frame.width=800 +package.numDependencies=0 +package.numTargets=2 +package.showExtends=true +package.showUses=true +project.charset=UTF-8 +readme.height=60 +readme.name=@README +readme.width=49 +readme.x=10 +readme.y=10 +target1.height=70 +target1.name=A +target1.showInterface=false +target1.type=ClassTarget +target1.width=120 +target1.x=70 +target1.y=10 +target2.height=70 +target2.name=B +target2.showInterface=false +target2.type=ClassTarget +target2.width=120 +target2.x=50 +target2.y=160