plz ans accurate (TCO 2) Variables should be declared as member variables of a c
ID: 3534269 • Letter: P
Question
plz ans accurate
(TCO 2) Variables should be declared as member variables of a class if they are used as arguments to other methods of the class. they are only used by one method of the class. their values must be shared between different methods of the class. they are local variables. (TCO 2) What can you say about the following Java class? public class MyApp extends Shape. Color {...} MyApp will contain methods from both the Shape and Color classes. MyApp will not compile because multiple inheritance is illegal in Java. MyApp inherits from Shape and implements the Color interface. MyApp is allowed to implement both the Shape and Color interface.Explanation / Answer
7. They are used as arguments to other methods of class 8. MyApp is allowed to implement both Shape abd Color interface
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.