Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Javascript (http://siteownersforums.com/forumdisplay.php?f=24)
-   -   Can we declare a class as Abstract without having any abstract method? (http://siteownersforums.com/showthread.php?t=165821)

Shivangi Panwar 03-03-2016 10:15 PM

Can we declare a class as Abstract without having any abstract method?
 
Yes we can create an abstract class by using abstract keyword before class name even if it doesn’t have any abstract method. However, if a class has even one abstract method, it must be declared as abstract otherwise it will give an error.


All times are GMT -7. The time now is 07:11 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.