Archives de
Auteur/autrice : Sylvie Linxe

Java inheritance

Java inheritance

The concept of inheritance is one of the most important concepts in object-oriented programming, because it irreversibly affects how Java code is written. Inheritance is a mechanism for creating a new class from an existing class by providing properties and methods. Inheritance is the third paradigm (how to use techniques/mold) of object-oriented programming (the first being encapsulation, the second the class structure). Inheritance can be single or multiple.It represents the relationship: is a kind of Example: A car is a…

Lire la suite Lire la suite

Learn how to debug JavaScript using the DevTools browser debugger

Learn how to debug JavaScript using the DevTools browser debugger

Debugging is one of those skills at the heart of a programmer’s business. Sometimes we try our best, but the program does not work properly, for example it crashes, it is just slow, or it prints out wrong information. What do you do when a program you’ve written doesn’t behave as expected ? You start to debug it. Determine where the error might be The first step is always to look at what is going on and try to determine…

Lire la suite Lire la suite

HTML5 form controls

HTML5 form controls

From HTML5 the control of forms is possible directly in the html input thanks to the pattern attribute and its value in the form of a regex. A regex is a regular expression, in other words a very powerful text control filter verifying the validity of information. Before HTML5, control of forms had to be done in JavaScript and its use was less convenient. The pattern attribute is compatible on browsers: Firefox 4+ Chrome 5+ Opera 9.6+ Internet explorer 10+…

Lire la suite Lire la suite