Translate some lines into Spanish (#21368)

Translate "You cannot create an object of Vehicle class anywhere in your program. You can however, extend the abstract vehicle class and create objects of the child classes;" into Spanish
pull/23051/head^2
Naaani 2019-08-07 23:29:20 -05:00 committed by Randell Dawson
parent 68bb39b9f2
commit cb35fd2d51
1 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@ Considere el siguiente ejemplo para entender las clases abstractas: Usted tiene
Vehículo público de clase amplía vehículo. { ... }
Clase pública de motocicleta extiende vehículo { ... }
Clase pública de motocicleta extiende vehíulo { ... }
```
You cannot create an object of Vehicle class anywhere in your program. You can however, extend the abstract vehicle class and create objects of the child classes;
No puedes crear un objeto de la clase Vehículo en ninguna parte de tu programa. Pero si puedes extener la clase abstracta Vehículo y crear objetos de las clases hijos;
```
Java Vehículo newVehicle = new Vehicle (); // Invalido Vehículo de vehículo = Coche nuevo (); // válido Vehículo mBike = nueva motocicleta (); // válido
Car carObj = nuevo Car (); // válido Motocicleta mBikeObj = nueva motocicleta (); // válido \`\` \`
Car carObj = nuevo Car (); // válido Motocicleta mBikeObj = nueva motocicleta (); // válido \`\` \`