CO225: Software Construction
CO225: Software Construction
Tutorial 1
Answer the following questions. These are typical questions asked during interviews.
5. Explain the difference between interface and abstract class. Give two examples of where
you would use an abstract class and interface.
6. What are the two types in Polymorphism? (was not discussed in lectures. Search)
8. What are the two types in thread creation? Why there are two types there?
9. Is multiple inheritance allowed in Java? What are the difficulties in multiple inheritance?
12. How to call a method in a base class without creating an instance of that class?
13. Given 3 classes, A, B, C and methodA() and methodB() in classes A and B respectively, how
can you make sure that these 2 methods are available for use in class C?
15. What is the difference between public class and public final class?