in oop can we use both final and abstract for one class? for php
I'm not sure if it's possible.
final abstract class Human{
}
let's say that's my class. I know that I tried that I will get an error when I'm trying to create an object in child class.
But just wondering if there's a way for both final and abstract to exist or it's always either final or abstract?
I'm not sure if it's possible.
final abstract class Human{
}
let's say that's my class. I know that I tried that I will get an error when I'm trying to create an object in child class.
But just wondering if there's a way for both final and abstract to exist or it's always either final or abstract?
No comments:
Post a Comment