DeckC's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 11 (0.01 per day)
- Joined:
- 21-March 11
- Profile Views:
- 118
- Last Active:
Dec 31 2011 02:12 AM- Currently:
- Offline
Previous Fields
- Country:
- IE
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Revising for an exam tomorrow
Posted 18 Dec 2011
Thanks for the reply blackcompe.
Two cents more like 2 dollars
.
That's a lot to look over I don't think it's going to go into that much detail but ya never know. I have done all I can for now time to get some
. I will let you guys know how the exam went.
Thanks for all your help its really appreciated.
-
In Topic: Revising for an exam tomorrow
Posted 18 Dec 2011
Thanks again jon.kiparsky for the reply the last part in my original post was on hierarchy have you any pointers or key things that I should remember. I was given a heads up that it would come up in the exam but would be a very basic question. -
In Topic: Revising for an exam tomorrow
Posted 18 Dec 2011
Thanks for the reply I didn't start a new thread as this is just more of the revision I am doing but I get what your saying and will do it in the future.
I have ran the code before and its doing exactly what I need it to.
In the exam tomorrow I will be asked to write (with a pen and paper) the application and explain each line individually and I'm just unsure what the lineint radius = 160 - ( topLeft * 2 );
does exactly everything else I put in to the post was just for reference. Sorry I should have been a bit clearer. -
In Topic: Revising for an exam tomorrow
Posted 18 Dec 2011
One other thing that I think will come up tomorrow that I am unsure of is this
Q. Write an application that draws a series of eight concentric circles. The circles should be separated by 10 pixels. Use Graphics method drawArc.
I have done this before by individually drawing each circle but its time consuming and repetitive. I found a snippet of code online that will draw the circles with a for loop but I'm unsure about some lines of the code ill post them below. If anyone could explain the I would be grateful.
for ( int topLeft = 0; topLeft < 80; topLeft += 10 ){ int radius = 160 - ( topLeft * 2 ); g.drawArc( topLeft + 10, topLeft + 25, radius, radius, 0, 360 ); } -
In Topic: Revising for an exam tomorrow
Posted 18 Dec 2011
Quote
Interfaces just specify the method declaration which is implicitly 'public' and 'abstract' which can only contain the fields 'public static final'.
Sorry that should have be said,
Interfaces just specify the method declaration which is implicitly 'public' and 'abstract' which can only contain fields that are implicitly 'public static final'
[quote name='blackcompe' date='18 December 2011 - 04:22 PM' timestamp='1324250545' post='1514359']
Quote
That is better written this way: A concrete subclass must implement all inherited abstract methods. "Concrete" means that it provides all the necessary implementations. You can have an abstract or concrete subclass of an abstract base class.
Thanks for that it actually makes more sense the way you wrote it, its the point I was trying to get across.
Cheers
My Information
- Member Title:
- New D.I.C Head
- Age:
- 28 years old
- Birthday:
- August 15, 1984
- Gender:
-
- Programming Languages:
- Java
Contact Information
- E-mail:
- Private
Friends
DeckC hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
DeckC
18 Dec 2011 - 17:05