discuss the concept of object-oriented programming and list the advantages
1).object oriented programming is a technique that builds the programm using the objects along with a set of programming along with a defined interfaces to that object .
2.It can also defined as a paradiagram as it describes the way in which programm must be organised and how these elements should interact with each other.Thus, an object oriented programm can be described as data that controls acess to code.the object oriented programming make use of Bottom_up approach and also manages the increasing complexity.
3).In object oriented programming data and functions are viewed as a single entity by implementation of class feature.it also offers user with features like inheritance ,polymorphism ..etc.It is a user or developer friendly.Object oriented programming supports reusability.
4) Example for the object oriennted programming like java and .Net...etc
Responsibility of object oriented programming: in this object oriented programming the actions are described in terms of responsibilities .A request to perform an action denotes the desired result.An object can use any technique that helps in obtaining the desired result and this process will not have any interference from other object.the abstraction level will be increased when a problem is evaluated in terms of responsibilities.the object will thus become independent from each other which will help in solving complex problems.An object has a collection of responsibilities related with it which is termed as 'protocol'.
Advantages :
1.OOPS offers useful features like encapsulation,inheritance,polymorphism not avaliable in traditional programming.
2.closer to real life representation of the objects.
3.Heirarchial relationships can be represented using inheritance.
4.Data can be divided as public and private.we can also provide an interface for entering and validating data by means of class properties.
5.programm development becomes easy due to increased modularity.
Get Answers For Free
Most questions answered within 1 hours.