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
59978554
Commit
59978554
authored
Mar 16, 2022
by
a-j.towse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Woking Square tas
parent
b67f5733
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
Square.class
bin/Square.class
+0
-0
Square.java
src/Square.java
+11
-1
No files found.
bin/Square.class
View file @
59978554
No preview for this file type
src/Square.java
View file @
59978554
public
class
Square
extends
Shape
{
public
class
Square
extends
Shape
{
int
size
;
public
Square
(){
public
Square
(){
super
();
super
();
...
@@ -9,5 +8,16 @@ public class Square extends Shape{
...
@@ -9,5 +8,16 @@ public class Square extends Shape{
super
(
x
);
super
(
x
);
}
}
public
float
area
(){
return
(
size
*
size
);
}
public
float
circumference
(){
return
(
size
*
4
);
}
public
void
Draw
(){
}
}
}
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