Posts

Java Method Overriding

Image
 Method Overriding   Let us compare  a Man and a Monkey. Changing the body of a Method passed from a super class to a sub class is called Method Overriding . Example 👇 Here the class called Man is Inherited from the class called Monkey .

Java Method Overloading

Image
 Method Overloading   A  Method is something that groups a coding set and keeps it. Let's create 2 Methods now. ( same class ).     ( But  it is not allowed to create more than one method with the same name in the same class ) Even though we are not allowed to create more than one method with the same name in the same class, we create it anyway. Creating multiple methods with the same name in the same class ( changing the parameters  signature ) is called  Method Overloading . We can do method overriding by changing the parameters inside the methods. Example 1 👇 Since we have been given an integer argument of 5 , it will be called at the ( 1)   Example 2 👇 Since we have not put an integer argument here, it will be called at (2) Example 3 👇 If you put an integer argument, it will be called at   (1). If you put two integer arguments, it will be called at   (2). If we change the parameters, we can grab them separately when calling . Example 4 👇

Java Access Modifiers

Image
                    Access Modifiers This is how we create security by knowing  who accesses a Class , Variable  or Method . Types Of Access Modifiers 1)Public 2)Protected 3)Default 4)Private Public Any class can be access from anywhere. Protected It is visible to the class  it is in and its subclasses and to others in the package it is in. Default Only the class you are in and the people in the package you are in can see. Private Only people in their class can see it. Example 👇                                                                                                                                                   Here class B is Inherited   from class A . Here    class   D is  Inherited   from   class C . Here, if  class A is Private, other   classes and packages cannot access it.  Here , if  class A is Default , B and C classes can access it. (Same package) Here , if   class C  is  Default , they are visible (can access)  to class C,B and A .  can't visible (can

Java Inheritance

Image
                                    Inheritance Using the things in one class of the program we are making in another class. Example: Old and New phone 👇 After inherit 👇 Types Of Inheritance 1) Single Inheritance 2) Multilevel Inheritance 3) Hierarchical Inheritance Single Inheritance Things in one class are used in another class. Here  class B  has Inherited from  class A . class A   operates as a " Superclass" and class B as a " Subclass".  class B can use the " Variables " and " Methods" of class A  Multilevel Inheritance There are Three classes here. class A   works as a" Superclass"  and  class B  and  class C   as a " Subclass".  And when  class C   works as a " Subclass " ,  class   B  works as a " Superclass ". class B can use  the" Variables " and " Methods " of class A class C  can use the " Variables " and " Methods " of  class B class C can use

Overcome Challenges

Image
                       Overcome challenges Every one of us has a challenge. it does not matter one’s age. we face these challenges at some point in our lives. All we have to do in those situations is to face the challenges successfully and overcome them. we must never run away from challenges. A person who is constantly challenged is strong both physically and mentally. There are many successful people because of the challenges.      Joanna pie touch was a man who faced such a difficult challenge. He did not face an easy challenge. He had an accident while working on his farm and had broken some parts of his spine. as a result, his lower abdomen became lifeless. But despite receiving treatment, he was unable to walk. So at times, he was very frustrated. I think such a person should not always be mentally broken. It is also a problem that his wife does not even understand the situation he is in. however, he did not accept his challenge. That’s one of the good qualities I see in him.

SAMSUNG GALAXY M02S

Image
SAMSUNG GALAXY M02S  Samsung Galaxy M02S smartphone was launched on 5th January 2021. It is a good phone for the money in hand. I also bought this phone a few days before creating this blog. I will now tell you the details about this phone. First, let's talk about the display of this phone. Display details The phone comes with a  6.50-inch touchscreen display with a resolution of 720*1600 pixels. Let's see about the processor of this phone.        Processor details Samsung Galaxy M02S is powered by an Octa-core  Qualcomm Snapdragon 450 processor. It comes with a 3GB/4GB Ram . It comes with  32GB/64GB Internal storage. The Samsung Galaxy  M02S runs one UI  is based on Android 10 and packs 32 GB of Inbuilt storage that can be expanded via MicroSD card ( up to 512 GB ). Let's see about the camera of this phone. Camera  details As far as the cameras are concerned, the Samsung Galaxy M02S  on the rear packs a 13-Megapixel primary camera , a 2-Megapixel  depth sensor , and a 2-