You can't fire a public defender because you didn't hire him. He was appointed by the Court and only the Court can remove him. If this indeed happened I wouldn't be so happy about it. Finding a decent private attorney can be difficult.
The court should grant your new attorney time to read over the case, develop a case strategy, and investigate any matters that could be relevant.
Mr. Loncar from Los Angeles has given the textbook answer. However, some judges are reluctant to give added time for a recently hired lawyer to get ready. This especially true if the new lawyer comes into the case right before the scheduled trial date. However, sometimes that works out just fine. I substituted in for appointed counsel about 10 days before a scheduled jury trial date on a second degree felony this month, and the judge gave me no trouble getting the trial moved off a few months to get ready. Your new lawyer should be able to orient you to what may go down in your particular case.
Answers on Avvo are for general information purposes only and should not be relied upon as legal advice. No attorney / client relationship is created by providing this answer. For specific advice about your situation, you should consult a competent attorney of your choosing.