Question
1. Distinguish between the following terms. Please write your answers for each: (a) Objects and classes (b) Data abstraction and data encapsulation (c) Inheritance and
1. Distinguish between the following terms. Please write your answers for each: (a) Objects and classes (b) Data abstraction and data encapsulation (c) Inheritance and polymorphism (d) Dynamic binding and message passing
2. How are data and methods organized in an object-oriented program?
3. Describe inheritance as applied to OOP.
4. What kind of things can become objects in OOP?
5. State whether the following statements are TRUE or FALSE (a) One of the striking features of object-oriented programming is the division of programs into objects that represent real-world entities. (b) Inheritance means ability to reuse the data values of one object by other objects. (c) Wrapping up of different types into a single unit is known as encapsulation. (d) One problem with OOP is that once a class is created, it can never be changed. (e) Object-oriented programs are executed much faster than conventional programs.
6. Fill in the blanks to the following questions: (a) OOP stands for Object-_________ programming. (b) ________ is a template or blueprint from which objects can be instantiated from. (c) _________ is a subroutine defined within a class to implement a behavior. (d) An ______ is an instance of class. (e) _________: When a sub-class inherits the methods and properties of a parent class. (f) _________: Hiding properties and methods of a class from the outside world by making these private.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started