Wednesday, 1 May 2019

The central principle of Object oriented programming

  • Inheritance  , polymorphism , Abstraction ,& Data encapsulation _____.                                           We all  ready discussed about polymorphism  we will discuss about inheritacne and abstraction and data Encapsulation
  • Inheritance . One of the keyfeature of OOp in  programming which is allow the user to creat a new class from a base class or parent class the derived class have the feature of base class and additional feature of its own  
  •  there are some type of inheritance 
● Single inheritance= 
A derived class with only one base class
                   ● multilevel inheritance
 From One base class(A)  we get  child class(B) from the child class ( B )we derived another class ( C ) this type of inheritance is known as multilevel inheritance
         
              ● Multiple inheritancel
From many or multiple base class ( A)(B)(C)  we derived a single derived class ( D)
Its is know as multiple inheritance

                   ● Hierarchical  inheritance
From one base class we get many derived class or child class
                ● Hybrid inheritance
The combination of hierarical inheritance and multiple inheritance  is known as hybrid inheritance
                   ●. ABSTRACTION
Its is one of the central principle along with (encapsulation and inheritance )
With the help of abstraction process programmer hides unnecessary  data and show only relevant  data about an object in order to reduce the complexcity  and increase the efficiency

                  ● DATA ENCAPSULATION
It is a process in which  the data of a class and object
Combine in a single form encapsulation prevent the direct access to the data
Its prevent from or reduse
se the hacking threat

                 ● REUSE ABILITY IN (OOP)

THE concept of inheritance provide the idea of reuseability
This mean














No comments:

Post a Comment

Neural network

One of the most powerful things about our brains is the way neurons allow us to learn. Computer scientists have been inspired by the way th...