Sem título
Slides do conjunto (6)
-
- Technological University of Gutierrez Zamora.
- ICT
- FINAL PROJECT
- TEACHER
- Alberto Avedaño Muños
- Members of team:
- Diez Rivera José Emmanuel
- Ontiveros Esteban De Jesús
- 210-A
- 18/08/2017
- UNIVE
-
- ABSTRACTION
-

- Class abstraction is a way for a class to force any other class that extends it to implement specific methods. The parent class is called an abstract class, the child class we will call a concrete class, and the methods a concrete class must implement are called abstract methods.
- For our purposes, abstract is a generalized concept and concrete is a specific implementation of the abstract
-
A Few Important Things to Remember:
- The first thing to remember is that any class that has at least one abstract method, is an abstract class.
- The second thing to remember is that an abstract class can not be instantiated, you must instantiate the concrete class.
- The third thing to remember is that abstract methods do not implement the method, they only provide the abstract for the concrete class to implement.
-
- Classes defined as abstract can not be instantiated and any class containing at least one abstract method must be defined as such. Methods defined as abstract simply declare the method signature, but can not define the implementation. When inherited from an abstract class, all methods defined as abstract in the parent class declaration must be defined in the child class; In addition, these methods must be defined with the same (or less restrictive) visibility. For example, if the abstract method is defined as protected, the implementation of the function must be defined as protected or public, but never as private.
-
- - https://www.phpclasses.org/blog/post/285-What-is-Class-Abstraction-in-PHP.html
- - http://php.net/manual/es/language.oop5.abstract.php
Informações
- Descrição
- Slides sobre Sem título, criado por José Emmanuel Diez Rivera em 16-08-2017.
- Criado por
- José Emmanuel Diez Rivera
- Visualizações
- 1
- Avaliação