subject

Consider the following partial class with constructor: public class Filename {
private String fullPath;
private char pathSeparator,
extensionSeparator;

public Filename(String str, char sep, char ext) {
fullPath = str;
pathSeparator = sep;
extensionSeparator = ext;
}

Which statement could be used to create an object of the Filename class?

a. Filename myHomePage = new Filename(FPATH, '/', '.');
b. Filename myHomePage = new Filename();
c. Filename myHomePage = new Filename(FPATH);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
Consider the following partial class with constructor: public class Filename {
private String...
Questions
question
Mathematics, 19.08.2021 20:50