adplus-dvertising
frame-decoration

Question

What do objects in a programming language encapsulate?

a.

State

b.

Behaviour

c.

Both state and behaviour

d.

None of the above

Posted under Software Engineering

Answer: (c).Both state and behaviour Explanation:Objects in a programming language encapsulate both state and behaviour, i.e. the way in which it acts upon other objects and is acted upon by other objects.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What do objects in a programming language encapsulate?

Similar Questions

Discover Related MCQs

Q. What is the major behavioral aspect of an object?

Q. What happens when a client requests some service from a server object in a programming language?

Q. What happens to an object instance over time in a programming language?

Q. Can information requested from an object in a programming language only concern the state of the object instance?

Q. What is the definition of a class in programming language?

Q. What is the purpose of a contract between client and server objects?

Q. What does the major behavioral aspect of an object concern?

Q. What is the goal during analysis and design in programming?

Q. What is the relationship between Furniture, Table, and Chair in programming?

Q. What is the relation between Chair and Furniture in programming?

Q. What is the purpose of the is-a relation in object-oriented design?

Q. What is the purpose of the part-of relation in object-oriented design?

Q. What is the difference between composition and aggregation in UML?

Q. Is the part-of relation transitive?

Q. Is the member-of relation transitive?

Q. Who controls the activities around UML?

Q. What is the current version of UML?

Q. How many diagrams does UML 2 have?

Q. What type of view do static diagrams give in UML 2?

Q. What is a class diagram in UML?