Question
in java oop, if a variable is marked private for example: private int MyTemp; What is needed to set the value of MyTemp? A private
-
in java oop, if a variable is marked private for example: private int MyTemp; What is needed to set the value of MyTemp?
-
A private get() method;
-
A public get() method;
-
A private set() method;
-
A public set() method;
-
-
Suppose that there exists an abstract class called shape. Which is the proper code to extend shape with the circle class:
-
class Circle extends Shape
-
class Shape extended by Circle
-
Class Circle includes Shape
-
Class Circle is a Shape
-
-
If a variable is marked private for example: private int MyTemp; What is needed to retrieve the value of MyTemp?
-
A private get() method;
-
A public get() method;
-
A private set() method;
-
A public set() method;
-
-
Suppose that a class provides a different method response on the values passed into the class. For instance, classname(string), classname(string, integer), classname(string, float). What is used in the class to accommodate this functionality?
-
Stack
-
Heap
-
Constructor
-
Object instance
-
-
Suppose there is a class which extends a superclass. Now, in the extended class, a different calculation is required for volume, area or temperature. What is the directive in the extension class for the calculation?
-
Private
-
Public
-
@override
-
This
-
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started