Talking City



Go Back   Talking City > Coding and Programming > PHP Forum
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2016, 06:55 PM
priya.sharma priya.sharma is offline
Senior Member
 
Join Date: Aug 2016
Posts: 100
priya.sharma is on a distinguished road
Default Final Keyword

What is the use of final keyword in PHP???

Reply With Quote
  #2  
Old 09-17-2016, 06:09 PM
aarohi aarohi is offline
Member
 
Join Date: May 2015
Posts: 71
aarohi is on a distinguished road
Default

PHP 5 introduces the final keyword, which prevents child cl***es from overriding a method by prefixing the definition with final. If the cl*** itself is being defined final then it cannot be extended.Properties cannot be declared final, only cl***es and methods may be declared as final.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +5.5. The time now is 06:16 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Talking City Managed by Megrisoft