This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestFormeGeometrice { | |
public static void main(String[] args) { | |
FormaGeometrica cerc = new Cerc("rosu",5.5); | |
FormaGeometrica dreptunghi = new Dreptunghi("albastru", 3.0, 5.0); | |
System.out.println("Detalli despre Cerc:"); | |
cerc.afiseazaDetalii(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cerc extends FormaGeometrica { | |
private double raza; | |
public Cerc(String culoare, double raza) { | |
//super apeleaza constructorul clasei de baza | |
//FormaGeometrica(culoare) | |
super( culoare ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Dreptunghi extends FormaGeometrica { | |
private double lungime; | |
private double latime; | |
public Dreptunghi(String culoare, double lungime, double latime) { | |
super(culoare); | |
this.lungime = lungime; | |
this.latime = latime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Clasa abstracta vs interfata | |
- Interfata contine doar declaratii fara metode ( fara implementare) si constante | |
- o clasa poate implementa mai multe interfaete (suport pentru mostenire multipla) | |
- toate metodele sunt implicit publice si abstracte | |
- este definita folosind cuvantul "interface" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Facem un program care analizeaza Campaniile de Marketing | |
- unealta complexa pentru analiza performantei campaniilor de marketing. | |
Scop: | |
- evalueze performanta diferitelor campanii de Marketing | |
- vizualizeze datele intr-un mod intuitiv si informativ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Carte: | |
def __init__(self, titlu, autor, an_publicare, ISBN): | |
self.titlu = titlu | |
self.autor = autor | |
self.an_publicare = an_publicare | |
self.isbn = ISBN | |
self.este_imprumutata = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main( a, b = None, c = None): | |
print( a, b, c ) | |
main( 1, 2, 3 ) | |
# Agregare in programarea orientata obiect | |
""" | |
Agregarea este un concept important in programarea orientata pe obiecte si reprezinta o relatie de tip "has a" (are un) intre doua clase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main( a, b = None, c = None): | |
print( a, b, c ) | |
main( 1, 2, 3 ) | |
# Agregare in programarea orientata obiect | |
""" | |
Agregarea este un concept important in programarea orientata pe obiecte si reprezinta o relatie de tip "has a" (are un) intre doua clase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Algo; | |
https://meet.google.com/xfk-nsek-rtf | |
//clasa de baza | |
class Vehicul { | |
protected String marca; | |
protected String model; | |
protected int anFabricatie; | |
//constructorul clasei |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Address { | |
private String strada; | |
private String oras; | |
private String codPostal; | |
public Address(String strada, String oras, String codePostal) { | |
this.strada = strada; | |
this.oras = oras; |