Answer to Question #261936 in Java | JSP | JSF for طالب

Question #261936
Constructor 
public Vehicle () { 
maxLoad=14.5;
} 
// default constructor 
public Vehicle () 
{ 
}
public Vehicle (int a, int b) 
{ 
//////
}
Call method form main method 
Vehicle x= new Vehicle ( ); 
x.setMaxLoad(14.5);   

Question1: According to Syntax in above, specify class name and its modifier?Question1: According to Syntax in above, specify class name and its modifier?






1
Expert's answer
2021-11-06T12:07:48-0400

class name is Vehicle

Modifier is the keyword public which is accessible by any other class


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS