Question

In: Computer Science

Research and explain in your words what is known as Object Oriented Programming. Then, identify two...

Research and explain in your words what is known as Object Oriented Programming. Then, identify two advantages of OOP for application development.

In peer replies, choose from one of the following and define the concept as part of your response.


Abstraction.


Encapsulation.


Inheritance.


Polymorphism.


Solutions

Expert Solution

OOP stands for Object Oriented programming .The Object Oriented Approach focuses on data rather than procedures and structures. This is a method where programming is adjusted and modeled on the basis of real life entities and processes. For example in a School library system, there are objects like book, student and processes like book issue.Object Oriented programming approach allows the programmer to create data variables or objects.

Characteristics of Object Oriented programming :

  1. Programs are divided into objects.
  2. Objects may communicate with each other through functions
  3. Follows bottom-up approach in program design

Basic Characteristics of OOP (Object Oriented programming):

  1. Objects
  2. Classes
  3. Data abstraction
  4. Inheritance
  5. Polymorphism

1. Abstraction: Abstraction means hiding internal details and showing only required details. Or we can say Abstraction refers to the act of representing essential features without including the background details or explanations

For example: When press button in TV it is on. Here user don't know it internaly working.

2. : Data encapsulation is the most important feature of a class. The data is not accessible to the outside world . They can be accessed only by those functions, which are wrapped within the class.

For Example: In TV everything wrapped up within the box.

3. Inheritance: Inheritance is the process by which objects of one class acquires the properties of objects of another class.

For Example: let us consider a class Student. And two classes : class Science_Student and class Commerce_Student all are the part of the class Student and have a Some a common properties like name, roll number etc.

4. Polymorphism : Poly means ‘many’ and morph means 'forms'.The ability to take more than one form is called as polymorphism. A Method can exhibit different behaviours in different objects of the same class. This behaviour can be dependent on the types or number of arguments or data passed to the method

For Example : - (minus) operator show two forms with different operants.

  1. a-b means a is substracted from b
  2. -a means a is negative.

Related Solutions

-What is object-oriented programming? -What is a class? -What is an object? -A contractor uses a...
-What is object-oriented programming? -What is a class? -What is an object? -A contractor uses a blueprint to build a set of identical houses. Are classes analogous to the blueprint or the houses? Explain. -What is a class diagram? How is it used in object-oriented programming? -What is an attribute in OOP? What is a data member? -What is a method in OOP? What is a member function? -What is the difference between private members and public members of a...
Explain what classes and objects are in object - oriented programming. Give an example of each...
Explain what classes and objects are in object - oriented programming. Give an example of each and explain how they work together in a computer program.
Briefly explain the terms used in object-oriented programming with examples.
Briefly explain the terms used in object-oriented programming with examples.
(a) Explain at least TWO (2) major aspects of an object-oriented programming (OOP). Provide suitable examples,
(a) Explain at least TWO (2) major aspects of an object-oriented programming (OOP). Provide suitable examples,
This week, you will create and implement an object-oriented programming design for your project. You will...
This week, you will create and implement an object-oriented programming design for your project. You will learn to identify and describe the classes, their attributes and operations, as well as the relations between the classes. Create class diagrams using Visual Studio. Review the How to: Add class diagrams to projects (Links to an external site.) page from Microsoft’s website; it will tell you how to install it. Submit a screen shot from Visual Studio with your explanation into a Word...
*OBJECT ORIENTED PROGRAMMING* JAVA PROGRAMMING GOAL: will be able to throw and catch exceptions and create...
*OBJECT ORIENTED PROGRAMMING* JAVA PROGRAMMING GOAL: will be able to throw and catch exceptions and create multi-threaded programs. Part I Create a class called Animal that implements the Runnable interface. In the main method create 2 instances of the Animal class, one called rabbit and one called turtle. Make them "user" threads, as opposed to daemon threads. Some detail about the Animal class. It has instance variables, name, position, speed, and restMax. It has a static boolean winner. It starts...
What are the object oriented concepts and which all object oriented concepts are used in the...
What are the object oriented concepts and which all object oriented concepts are used in the given program? Consider the following code and explain how each of the object oriented concepts are applied in the given program. (CO1) class Vehicle { string brand; public: void honk(); void honk(int); }; void Vehicle::honk() { cout << "Tuut, tuut! \n" ; } void Vehicle::honk(int x) { for(int i=0;i<x;i++) cout << "Tuut, tuut! \n" ; } int main() { Vehicle V1; V1.honk(); V1.honk(3); }
1. In Object Oriented Programming The private object fields can be directly manipulated by outside entities....
1. In Object Oriented Programming The private object fields can be directly manipulated by outside entities. Group of answer choices A. True B. False 2. __________ programming is centered on the procedures or actions that take place in a program. Group of answer choices A. Class B. Object-oriented C. Menu-driven D. Procedural/ Structural 3. __________ programming encapsulates data and functions in an object. Group of answer choices A. Object-oriented B. Class C. Menu-driven D. Procedural 4. The data in an...
Use composition relationship. What is composition? You will find out what composition in object oriented programming....
Use composition relationship. What is composition? You will find out what composition in object oriented programming. Based on the bedroom package below please create your own classroom package. After completing entire package, you will write about your package specification in Readme.txt and also explain how you apply composition to your project. package Bedroom; public class Bedroom { private String name; private Wall wall1; private Wall wall2; private Wall wall3; private Wall wall4; private Ceiling ceiling; private Bed bed; private Lamp...
Use composition relationship. What is composition? You will find out what composition in object oriented programming....
Use composition relationship. What is composition? You will find out what composition in object oriented programming. Based on the bedroom package below please create your own classroom package. After completing entire package, you will write about your package specification in Readme.txt and also explain how you apply composition to your project. package Bedroom; public class Bedroom { private String name; private Wall wall1; private Wall wall2; private Wall wall3; private Wall wall4; private Ceiling ceiling; private Bed bed; private Lamp...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT