2080.1 10

Object Oriented Programming2080.15 marksObjects as Function Arguments

What is the benefit of passing object as arguments? Write a program to create a class named actor with data members name and rating. Initialize the data members and display those names whose rating is greater than 5 using the concept of constant object.

What is the benefit of passing object as arguments? Write a program to create a class named actor with data members name and rating. Initialize the data members and display those names whose rating is greater than 5 using the concept of constant object. [5]

As stated in the notes, passing objects as arguments to member functions is useful in the following ways: - Initialization of data members: When we want to initialize all data members of one object with another object, we can pass objects and assign the values of the supplied object to the curren...

Up nextExplain the practical implication of protected specifier in inheritance. List advantages a