Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the answer to 18 and 19 16. What are the major steps in performing objec

ID: 644221 • Letter: W

Question


What is the answer to 18 and 19

16. What are the major steps in performing object oriented design? 17. In the object-oriented design of an airline passenger reservation program, suppose that airplane has been identified as one object and airplane seat has been identified as another object. Focusing specifically on the airplane object. how does it relate to the airplane seat object? 18. The OOP phrase instance variable is equivalent to what C++ construct? 19. The OOP phrase message passing is equivalent to what C++ construct? 20. Define responsibility and distinguish between an action responsibility and a knowledge responsibility, 21. What are the three ways that two classes can relate to one another? 22. How can you avoid Including a header tile multiple times?

Explanation / Answer

Q 18: The OOP phrase "instance variable" is equivalent to what c++ construct?

Ans: In object-oriented programming with classes, an instance variable is a variable defined in a class (i.e. a member variable), for which each instantiated object of the class has a separate copy, or instance. An instance variable is similar to a class variable.

After moving on to C++, the only way of replicating this is to have a default constructor, which is fine, but in some cases, I would rather have a constructor which requires arguments than an argument-less default constructor. or you can use a pointer, Staying in a smaller more local scope.

Q 19: The OOP phrase "message passing" is equivalent to what c++ construct?

Ans: Message Passing is nothing but sending and receving of information by the objects same as people exchange information. So this helps in building systems that simulate real life. Following are the basic steps in message passing.

In OOPs, Message Passing involves specifying the name of objects, the name of the function, and the information to be sent.

The answer is provided on the bases of my knowledge and information on the subject hope you had understand.

Thanks.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote