REFERENCE: https://www.dropbox.com/sh/nhjifwnuon3klnx/AADd7JvxXfK3DpecsQh3kiLEa/
ID: 3718995 • Letter: R
Question
REFERENCE:
https://www.dropbox.com/sh/nhjifwnuon3klnx/AADd7JvxXfK3DpecsQh3kiLEa/2018?dl=0&file_subpath=%2FExam+2+Material%2FPrismUser.java&preview=Exam+2+Material.zip
https://www.dropbox.com/sh/nhjifwnuon3klnx/AADd7JvxXfK3DpecsQh3kiLEa/2018?dl=0&file_subpath=%2FExam+2+Material%2FRectPrism.java&preview=Exam+2+Material.zip
https://www.dropbox.com/sh/nhjifwnuon3klnx/AADd7JvxXfK3DpecsQh3kiLEa/2018?dl=0&file_subpath=%2FExam+2+Material%2FPrismUser.java&preview=Exam+2+Material.zip
https://www.dropbox.com/sh/nhjifwnuon3klnx/AADd7JvxXfK3DpecsQh3kiLEa/2018?dl=0&file_subpath=%2FExam+2+Material%2FVectorAlgebra.java&preview=Exam+2+Material.zip
Part 3: following: 1. In PrismUser, cb1 is a cube. Assuming I have not seen the source code, how do I know which class it belongs to? 2. How do I differentiate between methods that are inherited or methods that are newly declared in a class? 3. How do I return/print the length of rp1 from our debugger? 4. Assuming there were nothing to catch an exception in VectorAlgebra.main0, how do I catch it from the debugger? 5. What are 2 ways to handle an exception?Explanation / Answer
Hi, I have answered first 2 questions.
please repost others,
1. we can call getClass() methos on cb1 object
2. If method signature is matching with one of the method signature of Parent
class the this method id inherited , otherwise new methods
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.