Answer to Question #262648 in Java | JSP | JSF for Thuy

Question #262648

You are recently hired by BKJob as a Trainee Developer under the Mentorship program. You are


deployed with Team Edu as your start.


Team Edu is currently working on a Project that involves Object Oriented Programming skills; hence,


the team leader has assigned you the task to develop a report comprising of the following:


• Examine the object-oriented programming paradigm characteristics and develop a professionally


formatted report that would include these characteristics (i.e., Encapsulation, polymorphism,


constructors/destructors, sub-objects, abstract/concrete, interface, method, redefinition,


generics/templates, containers, etc. Also include the information about class relationships like


generalization/Inheritance, realization, dependency, aggregation, composition, etc.


• Determine the design patterns from each of the creational, structural and behavioral pattern types


• Analyze the relationship between the OOP paradigm and the design patterns

1
Expert's answer
2021-11-08T09:13:44-0500
public class Mahindra implements ParentTracktor {
int speed=0;
int gear=1;
public void changeTracktorGear( int value){
gear=value;
}
public void speedUpTracktorEngine( int increment)
{
speed=speed+increment;
}
public void applyTracktorBrakes(int decrement)
{
speed=speed-decrement;
}
void printStates(){
System.out.println("speed:"+speed+"gear:"+gear);
}
public static void main(String[] args) {

Mahindra m= new Mahindra();
m.speedUpTracktorEngine(50);
m.printStates();

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