Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ClassAssessment2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
a-j.towse
ClassAssessment2
Commits
0e1ab369
Commit
0e1ab369
authored
May 07, 2022
by
a-j.towse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.ysjcs.net:8888/a-j.towse/classassessment2
parents
a638154f
6c07dbfb
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
0 deletions
+14
-0
App.class
bin/App.class
+0
-0
Rectangle.class
bin/Rectangle.class
+0
-0
Square.class
bin/Square.class
+0
-0
App.java
src/App.java
+3
-0
Rectangle.java
src/Rectangle.java
+8
-0
Square.java
src/Square.java
+3
-0
No files found.
bin/App.class
View file @
0e1ab369
No preview for this file type
bin/Rectangle.class
View file @
0e1ab369
No preview for this file type
bin/Square.class
View file @
0e1ab369
No preview for this file type
src/App.java
View file @
0e1ab369
...
...
@@ -5,8 +5,11 @@ public class App {
Shape
shape2
=
new
Square
(
3
);
shape2
.
draw
();
<<<<<<<
HEAD
Shape
shape3
=
new
Rectangle
(
5
,
7
);
shape3
.
draw
();
=======
>>>>>>>
6
c07dbfb68ad5b5ceab794cbb90d1b5c17473575
}
}
src/Rectangle.java
View file @
0e1ab369
...
...
@@ -22,6 +22,7 @@ public class Rectangle extends Shape{
float
circ
=
(
width
*
2
)
+
(
height
*
2
);
return
circ
;
}
<<<<<<<
HEAD
@Override
public
void
draw
(){
...
...
@@ -42,4 +43,11 @@ public class Rectangle extends Shape{
}
System
.
out
.
println
(
""
);
}
=======
@Override
public
void
draw
(){
}
>>>>>>>
6
c07dbfb68ad5b5ceab794cbb90d1b5c17473575
}
src/Square.java
View file @
0e1ab369
...
...
@@ -34,7 +34,10 @@ public class Square extends Shape{
for
(
int
loop4
=
0
;
loop4
<
size
;
loop4
++){
System
.
out
.
print
(
"--"
);
}
<<<<<<<
HEAD
System
.
out
.
println
(
""
);
=======
>>>>>>>
6
c07dbfb68ad5b5ceab794cbb90d1b5c17473575
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment