presentation14BENDZ - Samples Soheil Hassas Yeganeh...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Samples Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
What are is the output of the following Programs? They may have errors!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1 st Example 3 Shape.java class Shape { Shape(){ System.out.println(“A shape is created.”); } } Circle.java class Circle extends Shape { public static void main(String args[]){ new Circle(); } }
Background image of page 4
2 nd Example 4 Shape.java package edu.sharif.ce.java; class Shape { Shape(){ System.out.println(“A shape is created.”); } } Circle.java package edu.sharif.ce.java; class Circle extends Shape { public static void main(String args[]){ new Circle(); } }
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3 rd Example 5 Shape.java package edu.sharif.ce.java; class Shape { Shape(){ System.out.println(“A shape is created.”); } } Circle.java //package edu.sharif.ce.java; class Circle extends Shape { public static void main(String args[]){ new Circle(); } }
Background image of page 6
4 th Example 6 Shape.java package edu.sharif.ce.java; class Shape { Shape(){ System.out.println(“A shape is created.”);
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/21/2010 for the course COMPUTER S 003 taught by Professor Izadi during the Spring '10 term at Amirkabir University of Technology.

Page1 / 17

presentation14BENDZ - Samples Soheil Hassas Yeganeh...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online