Skip to main content

These are the different Access Modifiers in programming language

Access modifiers is the terinology given to describe the various roles and perimission that a variable within a parent / sub class can have on various places.

Access Modifiers are of 4 types

Public – This would mean that the variable is freely allowed to be used anywhere

Default – This means that the variable / method is allowed freely to be used accessed within the package alone

Private – This means that the variables / methods are allowed only in the parent class and restricted to it. This cannot be accessed outside of the class, even the subclass does not have access to it

Protected – A protected variable / function has access full access to any class as long as they are in the same package or any subclass irrespective of pacakge. 🙂 If you feel confusing, watch out the video below

Comments

Popular posts from this blog

Motivational Letter for Visa

 Motivational Letter for Visa To, The visa officer  XXXXXXXXXXXX From, XXXXX XXXXXXXXXXXXX Subject: Request for XXXX tourist Visa - Reg.   I am <YOU_NAME> holding Indian Passport ( No. <PASSPORT_NO>.  I would like to visit <PLACE> for a tourist vacation as a tourist along with my family, details given below. I have also enclosed my own financial papers, hotel bookings and flight ticket for your perusal. I will abide to the terms and conditions of the visa regulations and will return to my home country before my stipulated visa duration period. I am planning to travel on  < DATE MOTH YEAR> and return on <DATE MONTH YEAR > . The flight ticket and other travel expenses will be borne by me.    NAME DOB PASSPORT NO ISSUE DATE EXPIRY DAT...

South Korea Places to Visit

 South Korea Places to Visit Gyeongbokgung Palace National Folk Museum Myeong-dong Hanok village               Changdeokgung Palace      Seoul Tower - on Namsan Hill   Dongdaemun Night Market  Everland Theme Park  Gyeongju The Beomeosa Templ Busan Jeju Island  Shopping at Olive Young  Shopping at ART Box for kids    Seodaemun Prison History Museum  Street Market shopping