Category
- Php
- JAVA
- DOTNET
- Vbscript
- C
- vb
- html
- Mysql
- Oracle
- sql
- Db
- Computer
- Commerce
- Business
- Arts
- Cashier
- Audit
- Banking
- Accounts
- Math
- Physics
- Biology
- Others
Home >> Asked Questions >> Php
Q. oops features in php
Answer :
OOP has following features:
- Modifiers to control access to properties and methods (essential for encapsulation)
- A unified constructor name, __construct()
- Support for explicitly cleaning up resources through a destructor function
- Support for interfaces and abstract classes
- Final classes
- Static classes, properties, and methods
- Automatic class loading
Advantages :-
Code reusability
Breaking down complex tasks into generic modules
Easier maintenance and reliability:
- Modifiers to control access to properties and methods (essential for encapsulation)
- A unified constructor name, __construct()
- Support for explicitly cleaning up resources through a destructor function
- Support for interfaces and abstract classes
- Final classes
- Static classes, properties, and methods
- Automatic class loading
Advantages :-
Code reusability
Breaking down complex tasks into generic modules
Easier maintenance and reliability:
Posted By : app101
Most Viewed Questions