What is the different OOPS principle?
Answers
The different types of principles in OOP are as follows :-
❱ Data abstraction .
❱ Encapsulation .
❱ Inheritance .
❱ Polymorphism .
❱ Modularity .
EXPLANATION :-
↪ OOP is the contracted form of Object Oriented Programming language .
↪ OOP lays equal emphasis on data functions .
↪ Data abstraction refers to hiding of details and showing important data only .
↪ Inheritance is the property of a class to inherit the properties of another class .
↪ Modularity and polymorphism are the other principles .
↪ Encapsulation is the process of wrapping data and functions in class .
↪ A function shows the principle of polymorphism .
↪ Polymorphism means the ability of any data to be available in more than one form .
OOP - Object Oriented Programming language
OOP stands for Object Oriented Programming language. It is a paradigm based language in class and objects. There are so many programming languages which works in Object Oriented Programming language.
Java, C++, C#, . net, ruby, visual basic are the programming languages of Object Oriented Programming language.
principles in Object Oriented Programming language:
1) Data Abstraction
2) Modularity
3) Inheritance
4) Polymorphism
5) Encapsulation
Explanation:
=>
1) Data abstraction: It is used for hiding items and showing only some needed important information. This is the most important part of OOP
2) Modularity: The all colour, size of font, text is in Modularity. In short, This is a head tag like. This is based on principles of java.
3) Inheritance: This shows the inheritance property of class objects. This is not present in OOP actually.
4) Polymorphism: In short, polymorphism means, to displaying data in various different forms. This is used only in C++.