Object Oriented Programming - TGN

Latest

Welcome to Technicalgurunow! Your No. 1 source for all networking , earning and programming tutorials. We're dedicated to providing you the best of knowledgeable information with a focus on dependability. We hope you enjoy our blog.

Saturday, November 23, 2019

Object Oriented Programming

Object Oriented Programming

    There are two types of program paradigm in programming.
  1.     procedure oriented progamming
  2.     object oriented programming
    • If seen today, only object oriented programming(oop's) is used.
    • Oops it is a software development paradigm used to solve the problems coming in the procedure oriented approach.
    • The biggest task in Oops is to not let the system flow during program development.
    • In this, the problem is solved by the object , And the data and functions in it work with the object.
    • Only the object's function can access the object's data.
    • In oop's , The data and function are bind together what we call a class. We access that class by object
    • Object is considered to be a partitioned area of computer memory that stores data and set of operations that can access that data.
    • Objects can be used in a variety of different programs without modifications as the memory partitions are independent.
    • Different data and functions are stored and processed for each object.
    Features of Object Oriented Programming - :
    1. Object
    2. Class
    3. Data abstraction and encapsulation
    4. Inheritance
    5. Polymorphism
    6. Dynamic binding
    7. Message passing
    object : This is the basic run time entity of an oops.That represents an object(person, place etc.).By using the object, we can access the data and functions of the class.Cannot execute class without creating an object.Space is created in memory only when object is created.
    Class : class is a user defined data type.The class contain data and code that is accessed using the object. A class is a structure that defines the working of an object.many objects of the class can be created.
    Data abstraction and encapsulation : data and function bind together this is called encapsulation.

    2 comments:

    If you have any query, please let me know

    Followers