When developing a game, a developer creates a boss object that has the ability to jump. Which of the following programming concepts does jump represent?
A. Method – In object-oriented programming, a method represents a function or behavior that an object can perform. In this case, "jump" is an action that the boss object can execute, making it a method.
I went for D attribute cos my thinking was that the jump could be a method/function or a class saved in an object attribute something like: boss.jump = Extras.Jump()
A method of an object is almost like a function to perform an action on it.
Dion79's ChangeAddress example is on point. In the situation described in the question, the "jump" action would possibly look like BigBadDragon.jump()
Definitely a method.
Properties represent an alternative way of accessing a field publicly. Using a method might be regarded as quite a "heavyweight" means of doing this, so properties allow external code to ask the object to show or change the value of one of its fields.
I'd go with Method as well. Seems that provided answer might be wrong.
Object-Oriented Programming (OOP) is a popular way of designing code.
Objects can have attributes (fields), properties, and methods:
Attributes are values and data types that define the object. The attributes are stored within the object as fields or private variables. Other programs cannot access or change the fields directly. They must call a particular method (see below) to do that.
Methods define what you can do to an object. For example, a Customer object might have a ChangeAddress method. When another part of the program calls the ChangeAddress method, it also passes a string (hopefully containing a well-formatted address) to the object because that is what the method expects. The object's code receives this string, checks that it can be used as a valid address, and updates its Address field. The object might then have another method (PrintAddress) allowing another part of the program to find out what the current value of the Address field is.
This section is not available anymore. Please use the main Exam Page.FC0-U61 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
lexxone
2 months agoyanis88
9 months agobillybobjoe_
1 year, 1 month agoomarcoming
1 year, 1 month agoAmycert
1 year, 4 months ago[Removed]
2 years agoDion79
2 years, 6 months agoDion79
2 years, 6 months agoFaisalJ
2 years, 9 months agoluicosta
3 years, 1 month ago