adspace


what is abstrac class? why it is use?

Answer Posted / ramavtar rajput

abstract classes and methods. It is not allowed to create an
instance of a class that has been defined as abstract. Any
class that contains at least one abstract method must also
be abstract. Methods defined as abstract simply declare the
method's signature they cannot define the implementation.

When inheriting from an abstract class, all methods marked
abstract in the parent's class declaration must be defined
by the child; additionally, these methods must be defined
with the same (or a less restricted) visibility. For
example, if the abstract method is defined as protected, the
function implementation must be defined as either protected
or public, but not private.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current stable version of php? What advance thing in php7?

1094


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1988


List some features of php that are deprecated in php7?

1021


What is trait in php?

1065


sort term descripttion form, report and uery

2254


How to create a web form?

1109


Explain me is it possible to destroy a cookie?

1026


Which variable declarations within a class is invalid in php?

1047


Write a program using while loop?

1115


Tell me what kind of things have you done on the social side?

1064


What is the difference between htmlentities() and htmlspecialchars()?

1090


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1077


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2175


How to calculate the difference between two dates using php?

1143


how to detect a mobile device using php

1173