View on GitHub

reads

https://yazansneneh.github.io/reads/

OOP

A programming paradigm, the oop concept consider everything in life as object that contain properties and, so i can create a blueprint for objects that share same properties and behaviour.

what is Object?

benefits of objects.

Reference from my reads Objects

What Is a Class?

Reference from my reads Classes

public class Door {
    double height = 0.0;
    double weight = 0.0;
    double width = 0.0;

    void changeHeight(int newValue) {
         height = newHeight;
    }

    void changeWidth(int newValue) {
         width = newWidth;
    }

    void changeWeight(int increment) {
         weight = newWeight ;   
    }

    void open(int decrement) {
         System.out.print("Open!");
    }

      void close(int decrement) {
         System.out.print("Close!");
    }
}

What Is Inheritance?

What Is an Interface?

public interface myInterface{

    //  wheel revolutions per minute
    void turnTvOnOff(int newValue);

    void IncreaseVoice(int increment);

    void ChangeChannel(int newValue);

    void decreaseVoice(int decrement);
}

implement interface.

public class App implements {
   void turnTvOnOff(int newValue){
       return 0;
   }

    void IncreaseVoice(int increment){
       return 0;
   }

    void ChangeChannel(int newValue){
       return 0;
   }
    void decreaseVoice(int decrement){
       return 0;
   }

}

What Is a Package?

Questions and Exercises: Object-Oriented Programming Concepts