Question:What are the abstract class and interface?

 

Answer Abstract class: An abstract class is a class that cannot be instantiated. Abstract classes are intended to be inherited by a class that can be instantiated, better known as a concrete class. Abstract classes can be fully implemented, partially implemented or not implemented at all.

Interface: An interface defines a general specification for implementing a particular service, declaring the required functions and constants without specifying exactly how it must be implemented. 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd.com\answers\column_answer_two.php on line 128
+ Report
Total Preview: 799
What are the abstract class and interface?

Copyright © 2024. Powered by Intellect Software Ltd