Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please answer these questions. email mrapplesan@gmail.com If you embed class XYZ

ID: 3539927 • Letter: P

Question

please answer these questions.

email mrapplesan@gmail.com

If you embed class XYZ into class ABC describe what would happen. Why might you wish to do this as well? What would this print? Everything you'd need for this to run exists. If a class you are coding implements Comparable, what do you have to make sure you do? If class LMN extends class QRS what happens? The class definition would look like: public class LMN extends QRS {} Why is this expression not legal in Java: E myData =new E(); Remember E is a generic With a node based queue why is it important to keep track of both the head and tail? You have a class defined as: What does this do to class ABC?

Explanation / Answer

XYZ is the inner class of ABC Dale...... Bianca you must modify the compare method in your class. all the public, protected and default data members and member functions of QRS is inherited by LMN value is not passed while calling because in a queue push is from tail and pop is from head. Class ABC has all methods in XYZ