Differences

This shows you the differences between two versions of the page.

Link to this comparison view

poo-ca-cd:laboratoare:abstractizare-clase-speciale-si-restrictii [2025/11/04 12:07]
florian_luis.micu [Laboratorul 4: Abstractizare, Clase Speciale și Restricții]
poo-ca-cd:laboratoare:abstractizare-clase-speciale-si-restrictii [2025/11/12 11:31] (current)
florian_luis.micu [Clase și metode abstracte]
Line 151: Line 151:
  
 <code java> <code java>
-Vehicle vehicle ​= new Sedan(); +Sedan sedan = new Sedan(); 
-vehicle.startEngine();​ // Output: Car engine started! +sedan.startEngine();​ // Output: Car engine started! 
-vehicle.openTrunk();​ // Output: Trunk opened in the back of the car!+sedan.openTrunk();​ // Output: Trunk opened in the back of the car!
 </​code>​ </​code>​
  
poo-ca-cd/laboratoare/abstractizare-clase-speciale-si-restrictii.1762250853.txt.gz · Last modified: 2025/11/04 12:07 by florian_luis.micu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0