Object Oriented Programming(Slides)

Published on June 2017 | Categories: Documents | Downloads: 28 | Comments: 0 | Views: 402
of 8
Download PDF   Embed   Report

Comments

Content

OBJECT ORIENTED PROGRAMMING

Presentation By Akash Khaitan 08DDCS547

INTRODUCTION


It is a new way of organizing and developing programs and has nothing to do with any particular language Object oriented programming allows us to decompose a problem into a number of entities called objects and then build data and functions





It creates partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand.
Languages that support OOP features include C++, Object Pascal, Ada, Java



Classes And Objects


Classes are the basic building unit in the object oriented programming concept that is all the required functions of a particular class type are defined in the class, which can be accessed later according to the programmers need. A object is instance of class that contains all the properties of class. To access a particular member function/method of a particular class, dot operator is used.







A class may be thought as a data type and an object as a variable of that data type. Once a class is defined, we can create any number of objects belonging to same class.



ABSTRACTION & ENCAPSULATION


The concept of abstraction and encapsulation relates to the idea of hiding data that are not needed for the presentation This provides some of the declarations which decides the availability of data members of a class by other classes In OOP, information hiding reduces software development risk by shifting the code's dependency on an uncertain implementation onto a well-defined interface wellAn example of this concept can be seen in the case of bank accounts , orkut etc







POLYMORPHISM


Polymorphism means the ability to take more than one form It provides a special facility that is same function can be called for different purpose depending on the number and type of argument It is type of a function overloading It can be said under a common name required number of operations can be performed depending on parameters passed ExEx-Two differ shapes will be drawn under a common function but different parameters Rectangle Circle draw(x,y); draw(x);









INHERITANCE


Inheritance is the concept of a child class automatically inheriting the variables and methods defined in its parent class A child class is also called sub class (which inherits) A parent class is also called super class (which is inherited) It makes all the functions and variables of parent class available to sub class i.e all the functions of parent class can be called directly by sub class Types of inheritance are: Single class inheritance Multilevel inheritance









Multiple Inheritance

Hierarchical Inheritance

Hybrid Inheritance

Application of OOP


RealReal-time systems Stimulation and modeling ObjectObject-oriented databases Hypertext, hypermedia and expertext AI and expert systems Neutral networks and parallel programming Decision support and office automation systems CIM/CAD/CAD system















Conclusion
This report on Object oriented programming has let me conclude that Object oriented is one of the most important concept in the programming which helps the programmer to program more effectively and efficiently. The main feature is the flexibility of classes and objects which saves programmer¶s time. It provides some of the features like data abstraction, encapsulation, polymorphism, inheritance which has made it possible for the object oriented programming concept to be used in the real world situations. So to be an effective programmer one must go through the concept of Object oriented programming thoroughly.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close