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

1. (TCO 1) Object-oriented programming generally focuses on ______. (Points : 5)

ID: 3851679 • Letter: 1

Question

1. (TCO 1) Object-oriented programming generally focuses on ______. (Points : 5)        A. separating the interface from the implementation.
       B. client side access to implementation details.
       C. information hiding.
       D. reuse of code.
       All of the above
       None of the above
       Only A, C, and D

6. (TCO 7) How do you distinguish between virtual functions and pure virtual functions? How do you use the abstract class and the methods defined inside the abstract class? (Points : 18)            

Question 2. 2. (TCO 2) Which of the following components of a class definition have a return type? (Points : 5)        Constructors
       Destructors
       Overloaded constructors
       All of the above
       None of the above

Explanation / Answer

As per rules I could answer onli first four question. Please fin the answers below:-

Ans 1)Only A, C, and D

Explaination:-features of OOPs is:-

-Data Hiding

-Encapsulation
-Dynamic Binding
-Resuablity

Ans 2)None of the above

Explaination:-Class is not a function so it doesnot return any value. While constructor is the only function that doesnot return any value.

Ans 3)Only B and C

Explaination:-Multiple methods with same name but different no.of parameters or with different data type is called method overloading

Ans 4)None of the above

Explaination:- The basic concept and center of the object-oriented paradigm is Abstraction
The object-oriented paradigm is more feasible than procedural paradigm in modeling of a software system
       Abstraction is the process where "unimportant" details. are ignored while concentrating on the high level information.

Ans 5)Drink()

Explaination:-Since the activity related to cup is drink. So Drink() can be the appropriate method.