What is OOPs?
- OOPS, the standard form is Object Oriented Programming Structure.
- It is one of the ways of solving complex problems into smaller problems by using objects.
- Before using OOPS, programs were written in a procedural language i.e. C language, they were nothing but a long list of instructions.
Problems in C and overcome by OOPS:
- If declare global variable then all function known that value because of the global variable is public so anyone can access i.e. here not possible the particular function only knowns the global value and data are not secure.
- But, in the oops concept of having and managing objects and classes in java, the program key building block is Data. Therefore, secure data is tightly using access specifiers, classes, encapsulation, and so on.
Uses of oops or why it used?
- Reducing program lines.
- Data secure.
- Easy way to find errors.
- Execution speed is fast.
- Class
- Object
- Constructor
- Inheritance
- Polymorphism
- Overloading
- Operator overloading
- Exception handling
No comments:
Post a Comment