View on GitHub

reading-notes

Object Oreinted Programming OOP

Object stores its state in fields(fields represent the object stats),and exposes its behavior through methods.and data encapsulation It can’t be accessed if it is private.

Uses:

How to declare the Class

public class Read4{
    public static void main(String[] args){
        System.out.print("Ali Shiyyab");
    }
}