Object Oriented Programming-with accurate answers (verified)graded A
What is method overriding? - Answers-a feature that allows sub-class to provide implementation of a method that is already defined in the main class. This will override the implementation in the superclass by providing the same method name, same parameter, and same return type. What is an interface? - Answers-An interface is a collection of abstract methods. If the class implements an inheritance, and then thereby inherits all the abstract methods of an interface. What is exception handling? - Answers-an event that occurs during the execution of a program. Exceptions can be of any type - Run time exceptions, Error exceptions. Those exceptions are handled properly through exception-handling mechanisms like try, catch, and throw keywords. What are tokens? - Answers-Token is recognized by a compiler and it cannot be broken down into component elements. Keywords, identifiers, constants, string literals, and operators are examples of tokens.
Información del documento
- Subido en
- 13 de julio de 2023
- Número de páginas
- 4
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas