hi people,i want to know the difference between implementing abstract and extending an object(object inheritance) in php !according to what i know implementing abstract is using all code of parent class, and extending an object is also same including you can override a method...so if we have inheritance(i.e. extending an object) then why to use abstract ?
difference between using abstract and object inheritance
in PHP
Posted · Edited by jibran3492
hi people,i want to know the difference between implementing abstract and extending an object(object inheritance) in php !according to what i know implementing abstract is using all code of parent class, and extending an object is also same including you can override a method...so if we have inheritance(i.e. extending an object) then why to use abstract ?