Institute of Computer Science
  1. Courses
  2. 2019/20 spring
  3. Object-Oriented Programming (Narva College) (LTAT.NR.003)
ET
Log in

Object-Oriented Programming (Narva College) 2019/20 spring

  • Home
  • Materials
  • Grading
  • Java Glossary
  • Cheat sheet (S1-S6)
  • Source Example
  • Links
Chapter 6

Which one?

InterfaceAbstract class
implementsextends
does not have constructorshas constructors
to declare a method, the keyword abstract is optional because all methods of interfaces are abstract by defaultthe keyword abstract is mandatory to declare a method as an abstract
method modifiers: public abstract; private, staticmethod modifiers: no restrictions
has constants (static final fields)has constants and instance fields
can inherit more than one Java interfacescan implement more than one Java interface, but can inherit only one class
used when the implementation is unknownused if we know the implementation partially
slow approachfast approach
Chapter 6
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment