Changes some method access modifiers so we can perform Inheritance to implement Queue using Priority queue.