OOP Concepts - Part 01

 - JAVA  Language -



        Class Hierarchy

  •    Object 
  •    Class
  •    Method
  •    Variable  




    Standards





    Class :  The first letter is uppercase

               example :-  Capital

    Variable : The first letter is lowercase

               example :-  capital

    MethodThe first letter is lowercase and contains the parameter                 list

                example :-  capital()

      

    Java print Statement




    Assign Operator

    String b = "max";
           b = "pro";

    :- What the equal sign does is substitute the value on the left side of               the equal sign for the variable on the right side of the equal sign.


     Equalization Operators


    String c == "hey";

      ==  :- The two equal signs make the value on the left equal to the                          variable on the right.


     Scope Identification




  •   Curly brackets{ } are applied only to a class or method.

  •   All codes are placed inside a curly bracket.

  •   Curly bracket is used to indicate the relevant part.



     Class & Object


    Object

        To explain about an Object, let's see it with a simple example.

              

                               
Properties(Features)

     -----------------------------------------------------------------------------------------

                                        Human                                  

                                       Walk         Eat   
                                Smile         See
                                Jump         Hear
                                    Write         Fight

                              Behaviors(Function)
    -------------------------------------------------------------------

  •  Anything that has properties and behaviors is called an Object.


     
     Class

         To explain about an Object, let's see it with a simple example.

Car (Object)
👇

  • Properties
  • Behaviors


     Human   <--  8B                                
      Object   <--  8B
           đŸ‘‡
           đŸ‘‡
           đŸ‘‡
               Class.







    ---------------------------------------------------------------------
  • In programming, regarding the properties and behavior of an object, an object is used as a Class, while Properties are used as a Variable. and used as behaviors and methods.
  • Just like the properties and behaviors of the object, the variables and methods of the class are used.
  • That is, a class is a template created for an object.
  • A class can implement any objects by changing only the value.



                                                            

                                                            

                                       - See You in Part 2 -

😍Follow Me :-







Comments

Popular posts from this blog

OOP Concepts - Part 02

Method Overriding & Super Keyword (OOPC - Part 07)

Inheritance (OOPC - Part 06)

If You Can Gain Even A Little Bit Of Knowledge From This, That Is My Happiness.

Parameters & Arguments (OOPC - Part 03)

Method Overloading (OOPC - Part 05)

Constructor (OOPC - Part 04)