Skip to content

What are the different elements which are included within object oriented programming? #1659

Answered by Emojees
Kuefo asked this question in Q&A
Discussion options

You must be logged in to vote

These are some, but not all of the elements which can be involved in object oriented programming: Class - A logical entity that defines the blueprint from which an object can be created or instantiated.
Inheritance - A concept that refers to an object gaining all the properties and behaviors of a parent object. It provides code reusability.
Polymorphism - A concept that allows a task to be performed in different ways. In Java, we use method overloading and method overriding to achieve polymorphism.
Abstraction - A concept that hides the internal details of an application and only shows the functionality. In Java, we use abstract classes and interfaces to achieve abstraction.
Encapsulation…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kuefo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants