Java
Programming and Technical
Why do we use oops concepts? What is
its advantage?
Read Solution (Total 2)
-
- oop is a technic it is not a technology means it does 'nt provides any syntaxes instead of it provides suggestions how to achieve reusability,security and scalability by using oop principles those are encapsulation,inheritance,polymorpism.
Encapsulation provides security means it does'nt provides direct access of data instea of it provides indirect access though some verification and validations(setter and getter methods).
inheritance provides scalability means adding mew features without distrubing existing functionalities.
polymorphism provides reusability means storing sub class object into super class referenced variables and call the methods those methods are executing based on the which object stored it is nothing but a runtime polymorphism and loose coupling.
abstraction it is not a oop principle it is a supporting principle of oop priciples means hiding the data from user provide necessary information to the user. - 7 years agoHelpfull: Yes(0) No(0)
- By oops concept we can implement the real program which is existing in the world.its adv are we can acheive flexibility ,security,etc
- 7 years agoHelpfull: Yes(0) No(0)
Java Other Question