Welcome to the Webmaster Forum.
Results 1 to 13 of 13
  1. #1
    Senior Member
    Join Date
    Jan 2014
    Location
    Banglore
    Posts
    251

    What are different types of access modifiers?

    Public: Any thing declared as public can be accessed from anywhere. private: Any thing declared as private can’t be seen outside of its class. protected: Any thing declared as protected can be accessed by classes in the same package and subclasses in the other packages. default modifier : Can be accessed only to classes in the same package.

  2. #2
    Member
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    41

    Re: What are different types of access modifiers?

    There are mainly four types of access modifiers that are public,private,protected,default it is an specific part of programming language syntax used to facilitate encapsulation of components.

  3. #3
    Senior Member
    Join Date
    Dec 2015
    Posts
    253

    Re: What are different types of access modifiers?

    Access Modifiers Types. Only 2 basic access modifiers are applicable for Top-level Classes & Interfaces. They are Public and Package/Default modifiers. Public: If top level class or interface within a package is declared as Public, then it is accessible both inside and outside of the package

  4. #4
    Member
    Join Date
    Sep 2016
    Location
    India
    Posts
    30

    Re: What are different types of access modifiers?

    There are 4 types of Accessibility Modifiers in Java. They are
    1. public
    2. protected
    3. package/default
    4. private

  5. #5
    Senior Member
    Join Date
    Dec 2015
    Location
    Mumbai
    Posts
    389

    Re: What are different types of access modifiers?

    I agree with this post.

  6. #6
    Junior Member
    Join Date
    Sep 2016
    Posts
    23

    Re: What are different types of access modifiers?

    Your post is already the answer ??? Anw, good explanation (y)
    Last edited by jermain08; 09-28-2016 at 10:21 PM.

  7. #7
    Member
    Join Date
    Jul 2016
    Posts
    73

    Re: What are different types of access modifiers?

    Essay writing services reviews are very helpful for customers to find out the right place to get their papers written. Read this post and find the best. 100% Assured. You can trust and order.
    best essay writing reviews

  8. #8
    min
    min is offline
    Senior Member
    Join Date
    Oct 2016
    Posts
    650

    Re: What are different types of access modifiers?

    Access specifiers are keywords that determine the type of access to the member of a class. These keywords are for allowing privileges to parts of a program such as functions and variables.

    These are:

    • Public : accessible to all classes
    • Protected : accessible to the classes within the same package and any subclasses.
    • Private : accessible only to the class to which they belong
    • Default : accessible to the class to which they belong and to subclasses within the same package
    Last edited by min; 10-19-2016 at 01:46 AM.
    Instaeasy Review - The powerful software that allows you to manage the activities of your Instagram account and generate the leads as well as create more sales in this potential market.

  9. #9
    Senior Member
    Join Date
    Sep 2016
    Location
    Kolkata
    Posts
    153

    Re: What are different types of access modifiers?

    Nice information.

  10. #10
    Senior Member
    Join Date
    Jul 2016
    Location
    Haslet TX
    Posts
    207

    Re: What are different types of access modifiers?

    Access Modifiers Types. Only 2 basic access modifiers are applicable for Top-level Classes & Interfaces. They are Public and Package/Default modifiers. Public: If top level class or interface within a package is declared as Public, then it is accessible both inside and outside of the package.

  11. #11
    Senior Member
    Join Date
    Aug 2016
    Location
    Kolkata
    Posts
    356

    Re: What are different types of access modifiers?

    Public.
    Private.
    Protected.
    Default.

  12. #12
    Senior Member
    Join Date
    May 2016
    Posts
    108

    Re: What are different types of access modifiers?

    There are mainly four kinds of accessibility modifiers that are community, private, protected, default it is an particular portion of development terminology format used to accomplish encapsulation of elements.

  13. #13
    Senior Member
    Join Date
    Aug 2016
    Location
    Kolkata
    Posts
    239

    Re: What are different types of access modifiers?

    Public, private,protected access modifiers.

 

 

Similar Threads

  1. What are the access privileges in C++? What is the default access level?
    By chinmay.sahoo in forum Coding & Programming
    Replies: 1
    Last Post: 02-18-2016, 01:33 PM
  2. What is Code Access Security (CAS)?
    By chinmay.sahoo in forum Coding & Programming
    Replies: 1
    Last Post: 11-14-2015, 01:15 PM
  3. How I take a remote access of any system ?
    By MarryMorgan in forum Technology Forum
    Replies: 1
    Last Post: 03-19-2014, 06:58 PM
  4. Remote Access Server
    By Prince25 in forum Technology Forum
    Replies: 3
    Last Post: 09-16-2013, 01:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to top

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138