This is a new feature of Java. All computer programs consist of two parts : Code and Data. The programs can be organised around the Code or Data (called Process-Oriented) and the previous languages like C, BASIC did just that, but the modern languages like Java create programs that are organised around the Code as well as the Data. This is called Object-Oriented Programming. In simple words, previously, the programming languages like BASIC, Fortran etc. focussed on only providing commands to the computer and getting the job done, but the Object-Oriented Programming languages focus on both data and the commands.
There are six important principles of this concept, called the OOP principles, which are as follows :
There are six important principles of this concept, called the OOP principles, which are as follows :
- Object.
- Class.
- Inheritance.
- Encapsulation.
- Polymorphism.
- Abstraction.
No comments:
Post a Comment