Outline any four features of Object-Oriented Programming OOP, giving examples in each case.
Outline any four features of Object-Oriented Programming OOP, giving examples in each case.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Outline any four features of Object-Oriented
Expert Solution
Step 1
Four features of Object-Oriented Programming (OOP):
i) Abstraction
- The term abstraction refers to the fact that units in Object-Oriented Programming does not indicate the detailed design or implementation.
- That is, the classes only specify the functionality of the outside world using objects without providing the implementation details of member functions.
- Example: Employee class will have a method getEmployeeCredential without providing the complete details like from where the data is fetched or how to fetch the data.
ii) Polymorphism:
- This concept states that the same entity can exist in many forms in Object-Oriented Programming.
- For example, a function getArea() will return the area of the figure based on the number and type of arguments passed to it, Like the area of circle, rectangle, triangle.
//for circle
getArea(radius);
//for rectangle
getArea(length, breadth);
- That is, same name with many forms. Similarly, operators can be overloaded in Object-Oriented Programming languages like C and C++.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education