OOPs Concepts
Programming and Technical
HR Interview
Interview
What are the main underlying concepts of object orientation?
Read Solution (Total 2)
-
- Mainly there are four concepts for object orientation:
1.Abstraction -grouping of data and behaviour(operations)
into a conceptual object.
2.Encapsulation -Its the implementation mode of data
abstraction.With encapsulation, we can accomplish data
hiding
3.Polymorphism -Polymorphism refers to the process whereby
an object invokes a method of another object in a common
manner (with the same name) without understanding or caring
how it is accomplished.
4.Inheritance-When an object is derived from another
object. It inherits all the properties of another objects. - 10 years agoHelpfull: Yes(4) No(3)
- The core object-oriented concepts and most widely accepted are listed:
Encapsulation
Inheritance
Polymorphism
Encapsulation binds data and methods to a single entity.
Inheritance is a mechanism which allows all the characteristics of a base class to be passed on to a derived class. The mechanism extends an existing base class without modifying it, thus producing hierarchical relationships between them. Inheritance supports substitutability of functions seen in a base class by the derived class so as to extend functionality.
Polymorphism is a mechanism where the definition of a function is bound to a function name depending on data type. The data type may refer to an object pointer or the data type of function parameters. - 6 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question