Abstraction examples with code

example of code using public, protected, keyword for better understanding