Question: Consider the following code snippet: public class coin t private string coinvame; public string getcoinvalue ( ) { . . . . ' . }
Consider the following code snippet:
public class coin
t
private string coinvame;
public string getcoinvalue
Which of the following statements is correct?
The getcoinvalue method can be accessed only by methods of another class.
The getcoinvalue method can be accessed by any coin object.
The getcoinvalue method cannot be accessed at all.
The getcoinvalue method can be accessed only by methods of the coin class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
