I was a bit confused when researching about polymorphism. The concept of polymorphism resembles the concept of overwriting. What are the differences between polymorphism and overwriting in OOP?
Here's an example:
if(isset($_POST['nome']) && !empty($_POST['nome'])) {
session_start();
$_SESSION['nome'] = $_POST['nome'];
}
View demonstração
If I can not use this, what would be recommended? I'm trying to ta...
A fairly basic JavaScript question, on a ternary condition how can I do to take action only on an if without the need of the else?
Example
(test) ? test1() : test2();
If you do not want anything to happen at Else, how would you look?...
I was doing some simple algorithms in Java and most of the time using System.out.println() or System.out.print() , but to do the definition of the number of decimal places I'm using System.out.printf() . I know there is a diff...
I have a question regarding the precedence of operators in JAVA. I have the following code:
int x = 2;
long y = 1 + x * 4 - ++x;
Viewing the precedence table here .
In my view the expression should be resolved as follows:
1 + x * 4 -...
I'm studying C # and just did my first query in the Data Bank:
using System;
using System.Data.Entity.Core;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Test.Models
{...
I'm doing a job in Java and I need my program to create a directory in the user's home folder, but it needs to be able to create both Linux and Windows. Is it possible to create a "generic" path for this?
I decided to listen to some users to make the conversion but I need your help because I have done a lot of research and nothing works.
The first file is:
<?php
include_once("/pasta/connectserver.php");
$table = "rjpsync_tag, rjpsync_i...
I noticed that in many functions in javascript I see at the end a return true .
function EscreveDados(){
document.getElementById("divData").value = 'texto';
return true;
}
In HTML we have the tag which calls the function fol...
Let's suppose the following situation in which I have array composed of several array with numerical values:
$array = array(
array(22, 25, 28),
array(22),
array(22, 23)
)
I would like to leave this array ord...