Concept  of  OOP’s  (Object  Oriented  Programming)

No comments

Object  oriented  is  termed  which  is  interpreted   differently  by  different  people.   It  is  therefore  necessary  who  understand  some  of  the  concept  used  extensively  in  object  programming.  Following  are  the  characteristic   of  OOP  language.
1.   Object
2.   Class
3.   Data abstraction
4.    Encapsulation
5.    Inheritance
6.    Polymorphism




1. OBJECT :- Object  are  the  basic  runtime  entities  in  an  object  oriented    When  a  program  is  a  executed  the  object  interact  by  sending  messages  to  one  another.  It  contains  data  and  code  to  manipulate  that  data.

2. CLASS :- The  entire  set  of   data  and  code  of  an  object  can  be  made  a  user  define  data  type  using  the  concept  of  a    A  class  may  be  through  of  as  data  type  and  an  object  as  a variable  of  that  data  type.
OR

Class  is  the  basic  construct  that  includes  the  variable  and  functions  into  a  single  unit.

Example

Class  Example

{

// You  programs  begins  with  a  call  to  main()

Public  static  void  main(String  args[])

{

System .out.println(“This  is  a  simple  java  program”);

}

}

3. DATA ABSTRACTION :-  Abstraction  reference  to  the  act  of  representing  essential  feature  without  including  the  back  ground  details  or    Classes  use  of  the  concept  of  abstraction  and  are  define  as  a  list  of  abstraction  attribute  such  as  size,  weight  and  cost  and  methods  that  operate   on  this  attributes.

4. ENCAPSULATION :- It  is  a  mechanism  that  binds  together  data  and  method  into  a  single  unit  is  called    The  data  is  not  expectable  to  the  outside  world  and  only  those  methods,  Which  are  wrapped  in  the  class,  can  access  it.  These  methods  provide  the  interface  between  the  objects  data  and  the  program.

5. INHERITANCE :- It  allows  the  extension  and  reuse  of  existing  code  without  having  to  rewrite  the    Inheritance  involves  the  creation  of  new  classes  from  an  existing  class.  New  classes  are  called  derived  classes  or  subclasses  and  existing  class  is  called  base  class  or  super  class.The  derive  class  inherited  the  members  of   the  base  class  and  also  add  its  own.

There  are  two  type  of  inheritance:-

      A.   Single  inheritance

      B.    Multiple  inheritance

6. POLYMORPHISM :- Polymorphism  means  single  look,  different
There  may  be  a  single  function  (overloaded),  which  can  be  invoked  using  different  arguments.  This  is  an  example  of  polymorphism.  There  are  also  other  forms  of  polymorphism  available  in  java.

                 Moreover  that,  OOP  also  provides  the  facilities  for  generic  class  design,  using  which  one  can  design  a  class  that  can  be  used  for  multiple  data  types.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀