MCIT 591 Final Exam 2024
MCIT 591 Final Exam 2024 What is the method signature for the main method of a Java program? - answer-main(String[] args) What is overloading? - answer-two methods that have the same name but different method signatures What is overriding? - answer-Declaring a method in a sub class which is already present in the parent class in order to make the method more specialized to that sub class True or False, assertEquals uses .Equals() - answer-True If you have a child class that is extended a parent class, and that parent class has a protected method, can the child class utilize that method? - answer-Yes! the only time it couldn't ( as far as I know) is when the method is private What is cohesion? - answer-similar tasks should be in the same class What is coupling? - answer-interaction between two classes should be kept low What does DRY mean? - answer-Do not repeat yourself ! Method Signature - answer-name of the method and the method parameters along with their data types Polymorphism - answer-principle that allows the same method to exist in different forms
Written for
- Institution
- MCIT 591
- Course
- MCIT 591
Document information
- Uploaded on
- November 6, 2024
- Number of pages
- 4
- Written in
- 2024/2025
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
mcit 591 final exam 2024