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

1. What is polymorphism? Give an example. 2. What is inheritance? Give an exampl

ID: 3539956 • Letter: 1

Question

1. What is polymorphism? Give an example.
2. What is inheritance? Give an example.
3. What is dynamic method lookup? Give an example.
4. What is the shadowing of variables? Give an example.
5. What is an interface? Where is it used/useful? Give an example.
6. What is an abstract class? Where is it used/useful? Give an example.
7. What is this? How can you use it?
8. What is super? How can you use it?
9. What is casting? How can you use it?
10. What is the difference between a static and non-static member?
11. What is constructor chaining? Why is it important? Give some examples.
12. What is the class extension mechanism? Give some examples.



Explanation / Answer

8) super() used to call the parent constructor


ex: