This has to do with abstract and how can i acesses it with a getmethod()
Ok lets say I have a class called class A and a abstract class called class B ok I want to beable to access the methods in class B how can I do this ??I know I could make the method static and get to the method like B.methodIWant() but I want to access it like something like I have down below.Thank you for anyhelp you can give on this thanks
This is what I was tring but its not working cause it returns a nullpointer and I dont know how to get this to work right can someone plz show me how to get this to work correctly or point me to some links that will explain or something.
publc class A
publc A()
B bb = B.getB();
bb.methodIWant();
public static void main(String[] arguments)
A aa = new A();
abstract class B
static b C = B.getB();
public static B getB()
return B.C;
public void methodIWant()
System.out.println("got it");
} Jimmy
I have another ?.This is about interfaces ok lets say I take the code I have here and add a interface D to this like so
public class A implements D{
public A()
B bb = B.getB();
bb.sayItWorks();
saySomthingElse(bb);
public void saySomthingElse(B bbb)
bbb.saySElse();
public static void main(String[] arguments)
A aa = new A();
abstract class B
private static C cc = new C();
public static B getB() { return cc; }
public abstract void sayItWorks();
public void saySElse()
System.out.println("See ya");
class C extends B
public C() {}
public void sayItWorks( )
System.out.println("It works,HELL YEAH!!!!,Thank you KAYAMAN" );
interface D
public void saySomthingElse(B bb);
}Ok My ? is y do we really need a interface I mean I could have done this just by adding a method in the A class.So what I am wanting to know is a interface just use for design issues?
Similar Messages
-
Hi, I have a prepaid visa card but when I want to purchase a product, I face" please contact to Itunes support to complete this transaction". what should I do and how can I contact with Itunes support?
These are user-to-user forums, you are not talking to Apple here and they don't monitor these forums (I've asked the hosts to remove your email address from your post).
You can contact iTunes support here and ask why you are getting the message and how to resolve it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
After upgrading iPhoto on my MacBook Pro running OSX Yosemite 10.10.3 it continually keeps asking me that it is preparing library. This has happened 5 times now and I can't access my photo's through iPhoto, any suggestions?
There is no upgrade to iPhoto with OS X 10.10.3 - here was an update to version 9.6.1 a few months ago and Photo 1.0 was added with 10.10.3 - what software and which version are you having trouble with - iPhoto or Photos?
LN -
I keep getting this message " the maximum number of free accounts have been activated on this iPad " what does that mean and how can I fix it
It's a really bad idea to post your iPhone's serial number and I've asked the Hosts to remove it.
Any one device can create only three iCloud accounts. As you have apparently already created three accounts (or if it's a used phone the previous owner did) you cannot create any more one it. This is tied to the hardware, not the account, and there is no way round it.
You can create a new iCloud account on another iOS device or on a Mac, and then you will be able to sign into that on your iPhone. -
Hello,
I'm pretty new to Muse so I don't know a lot about it, but I researched a lot and didn't find an answer to this question.
I'm trying to make a portfolio website. The website will be a 12 thumbnails. But each thumbnail is one project, not an image.
When you click one of the thumbnails, I want it to be a lightbox that will show embeded videos from vimeo mixed with images.
Ex: A coca-cola projet.
Main page has a thumbnail of a coca cola image. When you click on it, it opens a lightbox with a coca-cola film, when i click to the right arrow, it shows a cocacola poster, then another poster, then another video. (but they are all part of this gallery, that is inside the thumbnail.
Can you guys help me?
Thanks!!!I don't understand why my thumbnails don't work.
I dragged a composition lightbox inside another one. But I still have the first lightbox there and can't delete.
When I try my wabsite i see this:
But then I click the thumbnail and I see this:
And when I click one of those 3 I see this:
Like it is making a double lightbox.
but it doesn't show the images, it's like the first lightbox is on top of the second one.
How I deal with this? =/ -
When I open the app icon because it has updates, and hit update, a little box pops up and tells me I'm on a us store and need to switch to Canadian to purchase! How do I change this and why is this coming up
bearoo4 wrote:
... tells me I'm on a us store and need to switch to Canadian to purchase! How do I change this...
See > Change your iTunes Store country
Here > http://support.apple.com/kb/HT1311
bearoo4 wrote:
... why is this coming up
maybe you tried to Purchase something in the US Store...? -
WHAT DOES THIS HOT SYNC ERROR MESSAGE MEAN AND HOW CAN I FIX THE PROBLEM??
"THE HOT SYNC OPERATION WAS INTERRUPTED. SOME OF YOUR DATA WAS NOT BACKED UP."
"(ERROR: EASNotify.dll failed a confirmation query and cancelled the sync operation).
HotSync Error: An application cancelled synchronization or failed to respond to a HotSync notification. Please ensure that you are not currently editing data using applications such as Palm OS Desktop of Install Tool. (8009)"
I have spent hours upon hours trying to figure out what is wrong and why I cannot complete a hot sync with my computer. I have done a hard reset and reinstalled the palm desktop software numerous times with no luck. I bought a book on the palm. No mention in the book about this particular problem.
Can anyone out there help me with this problem??? I would be forever grateful!!
Post relates to: Palm TX
Post relates to: Palm TXTo check which applications are installed on your palm, you can click on the home button on your palm and make sure it says "all" on the top right of your screen. This will show you all the apps installed on your palm. Look through all the applications listed there and see if there is anything extra. You can list them here and I will tell you if there is anything that didnt come with your device when you purchased it.
You will not need the palm cd to reinstall everything again after you do a hard reset because all the info will be backed up on your computer from your sync. You stated that all the information is on your computer after you sync'd so you dont have to worry about losing it. Once you sync again after performing the hard reset, you will be able to get all the info back again on your palm.
Post relates to: Tungsten E2 -
My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean? And how can I get my computer back up and running normal?
Start up in Safe Mode.
http://support.apple.com/kb/PH14204?viewlocale=en_US
Repair Disk.
http://support.apple.com/kb/PH5836
Reset PRAM.
http://support.apple.com/kb/PH14222 -
My Mac has Operative System MAC OS X Version 10.6.8,processor 2x2.66Ghz Dual core Intel Xeon. Is this compatible with Photoshop 5.5 or 5 and how can I get it in Bogotá, Colombia or can I download it ?
CS5 and CS5.5 are no longer sold. You can either buy CS6 or the subscription to CC. System requirements | Photoshop
Benjamin -
Why do I get - 'This message has no content' - with some e-mails on my iPad when the same messages can be received on my Mac Book Pro without any problem and how can I fix it?
Is this a POP (POP3) email account? If so, you MacBook Pro may be retrieving the email and deleting it off the server before your phone can. Another possibility is that both your Mac and your phone are trying to retrieving it at the same time, and the POP server, which will only allow a single email client connection at a time, is locking out your phone resulting in the "has not been downloaded from the server" error.
-
iphone has been in recovery mode for 4 hours and hasn't come back to the home screen and how can i fix this and get it back to working order?
the iphone 4S has been in recovery mode for a long time and i have tried to press and hold the power and home buttons until the apple symbols comes on the screen again but it stay on the screen until the screen turns off and doesn't come back on to the home screen and have tried to sync with mac and doesn't do anything it does display the itunes and cable icons for a while but then goes back to the apple symbol and doers nothing what can I do to fix this and not loose what is on the phone at all?Hi, simonRM.
Thank you for visiting Apple Support Communities.
I understand that you are unable to restore your iPhone. Here are the best troubleshooting resources to start with when not being able to update or restore your iPhone.
If you can't update or restore your iPhone, iPad, or iPod touch
Resolve iOS update and restore errors in iTunes
-Jason H. -
i just dowloaded an il divo album. when it was placed on my ipod classic it came in as 8 different songs; not listed as 1 album with 8 songs. this has happened before with other purchases. Why? How can I insure an entire album is saved as an entire album and not individual songs. And now how can I move individual songs to the album they belong in?
I seem to have fixed it by putting <div class="clearfloat"></div> after the navigation bar?
-
Everytime i try to sign into my iTunes account, it says: We could not complete your iTunes store request. An unknown error has occured (0x800B0101). What does this mean and how can i fix it?
Hello zabetnz
Start with the article below to get access to the iTunes Store. If it does not work, then there are some links towards the bottom of the article for additional troubleshooting.
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
Regards,
-Norm G. -
I'm having difficulty publishing via ftp to Machighway, I suspect this has to do with the fact I seperated my webpages into 3 sites in iWeb. Can any one tell me how to undo this in iWeb?
You'll have to describe in detail the workflow you're using to upload to Machighway and any messages/warnings that you get along the way. Also what version of iWeb are you using and are you publishing just one of your sites?
OT -
When I am using Firefox I keep getting unrequested Windows opening with full page advertisements. Why is this happening and how can I stop it? This is particularly aggravating when the new page has music or a voice message that intrudes even when I am not looking at the page.
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
*http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
Maybe you are looking for
-
Error while posting A/R Downpayment Invoice with Excisable Tax Code.
While posting A/R Dowpayment Invoice with Excisable Tax Code error of "Unbalanced Transaction" appears. This error does not occur while posting A/R Downpayment Invoices with Non-Excisable Tax Codes. Kindly provide a solution for the same.
-
I have taken my smashed (unusable) iPhone into apple for repair today and followed their instructions beforehand, removing the phone from icloud through my PC. However the guy at apple could not do anything as he said it was still connected to i clou
-
Screen readable output (section 508)
Hi Everyone, I've been tasked with finding a way of generating screen readable output rom RH which is section 508 compliant. By this I mean not having to use the mouse and use keystrokes only. A customer has suggested that a tagged PDF was one of the
-
Help! boxes with A's in them are everywhere
Well, I decided to update my firmware and 10.4.7 on my 3 month old imac G5. All of the font everywhere has turned into a box with an "A" in it...menus, folder names, folder contents, everything. I have started in safe mode and have considered the arc
-
Presenter 8 video record fails to work with firewire camcorder
Tried to record with camcorder connected via firewire. Presenter video creator crashed. Poor results for a highly anticipated "upgrade". Problem with installed "Adobe-Pr-VC.exe" app. Wish that Adobe would test their products instead of having us doin