Why Register With OSV?

Join 5700+ of your peers

Get enriched. Access 1270+ quality tutorials right away on:

  • Joomla 2.5.X, 3.0.X
  • WordPress 3.5.X
  • Shopping Carts
  • E-Commerce Payment Gateways
  • PDFs for each tutorial - FREE for download
  • New topics and tutorials added weekly

FREE EBooks

FREE Templates

Member Login

Not a member yet? Sign Up!

Opensourcevarsity Logo
Tutorials & Training from experienced world class trainers
Welcome, Guest
Username Password: Remember me

Differences between public, private, protected
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1

TOPIC: Differences between public, private, protected

Differences between public, private, protected 1 year, 9 months ago #779

  • palak
  • OFFLINE
  • Expert Boarder
  • Posts: 101
  • Karma: 0
What are the differences between public, private, protected, static, transient, final and volatile?

Re: Differences between public, private, protected 1 year, 9 months ago #781

  • juber
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 0
Public - Public variables declared can be accessed everywhere

Protected - Protected variables limits access to inherited and parent classes

Private - Private variables limits visibility only to the class that defines the variables.

Static - A static variable exists only in a local function scope, but it does not lose its value when program execution leaves this scope.

Final - Final keyword prevents child classes from overriding a method by prefixing the definition with final.

Transient - A transient variable is a variable that may not be serialized.

Volatile: A variable that might be concurrently modified by multiple threads should be declared volatile. Variables declared to be volatile
will not be optimized by the compiler because their value can change at any time.
  • Page:
  • 1
Time to create page: 1.80 seconds
O-S-V Free Templates

FREE HTML / Joomla / WordPress Templates For Download
Registration Required

CONNECT WITH US

Sitemap   |   Privacy Policy   |   MySQL(70)   |   Disclaimer   |   Reach Out To Us
Designed by Ivan Bayross & Meher Bala | Powered by Joomla
© 2013 All Rights Reserved.