Tuesday 15 October 2013

OOPS Concept C#

OOPS Concept C# :


  •   Class
  •   Objects
  •   Inheritance
  •   Polymorphism
  •   Inheritance
  •   Data Abstraction & Encapsulation
  •   MessagePassing
  •   Dynamic Binding

  Class :

                 *  It Is a Template..
                 *  It Is Collection of Methods,Function and Member Variables..
                 *  One or More different Method's are different DataTypes
                     Called as Class..

      

 Objects :

                 *  It is a Entity.
                 *  One Class When Object Create allocate the Memory..  

 Data Abstraction :

                 It is a Hiding Techinque.
                 Same as Access Modifers..
                          
                     * Public
                     * Private
                     * Protected
                     * Internal
                     * Protected Internal  

 Polymorphism:

                  *  It is a Duplicate Classes..
                  *  Method Names are Same.. 
                But Different types of Parameters..(Three types of)
                          
                      * Number Of Parameters
                      * Count Of Parameters
                      * Order Of Parameters
                               
                          RunTime Polymorphism  (Overriding)
                 CompileTime  Polymorphism  (overloading)

Inheritance :

             *  Reusability..
              One Class to another Class Inherited.. 
             *  One Class to another Class Calles as Inheritance..
             *  Parent Class to Child Class..
             Inheritance Types :

                * Single Inheritance
                * Multiple Inheritance
                * MultiLevel Inheritance..

InterFace  :

          *  InterFace is a Incomplete Class..
         *  Can not be Create Object.. 
         *  Method Names and Members variables Declare Only Not have                               Implementation.. 
         *  When One Class to InterfaceClass are Inherited Declare Methods
                 and Member variables are Must Have  Implemention..
         *  One Intrerface to another Interface Inherited..
         *  InterFace to Abstract Inherited..
         *  Abstract  to Interface Not Inherited..

Abstract :

            (Same as Interface)
            (Method Names and Members variables are
               Declare and Implementation..)
           *  Abstract is a Incomplet Class..
           *  Can not be Create Object.. 
           *  Method Names and Members variables are
                   Declare and Implementation..
           *  When One Class to AbstractClass Inherited Declare Methods
                   and Member variables are Must Have  Implemention..
            One Intrerface to another Interface Inherited..



 Partial Class :


          Class Names are Same..
          One or More Class Names are Same..
          But Mehod Names Different..

  Static Method :

           Cannot Create Object..

 Scaled Class :


          Scaled Class Not Inherited to Another Class..

 Constructor :


           Class Name and Methods Names are Same.. 
           Once Object Create Costructor Automatically Methods
                  will be Called..

No comments:

Post a Comment