Question: please answer all questions..thank you Question 1 Please answer the following questions with true or false No statement outside the method in which a parameter










please answer all questions..thank you
Question 1 Please answer the following questions with true or false No statement outside the method in which a parameter variable is declared can access the parameter by Nits name. no In the method header, the method modifier public means that the method belongs to the class, not a specific object V Without a base case, a recursive method will call itself only once and stop. V Both character and string literals can be assigned to a char variable. When an array of objects is declared but not initialized, the array values are set to null. A. True When an array is passed to a method, the method has access to the original array. V B. False When you write a constructor for a class, it still has default constructor that Java automatically provides. An instance of a class does not have to exist in order for values to be stored in a class's static fields. Because every class directly or indirectly inherits from the object class, every class inherits the object class's members. In an inheritance relationship, the subclass constructor always executes before the superclass constructor. ti42 Match the question with answer This is a method that gets a value from a class's field, but does not change it. overriding This is a method that stores a value in a field or in some other way changes the value of a field A. B. constructor method This is a method that is automatically called when an instance of a class is created C. instance method This type of method cannot access any non-static member variables in its own class D. mutator method +1 (512) 999-8027 Just now A method in a subclass that has the same signature as a method in the superclass is an example of E. accessor method A method in a subclass having the same signature as a method in the superclass but a different signature is an example of F. Overloading = Given the following declarations class Dog public: virtual void bark() { cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
