代码搜索:polymorphism
找到约 740 项符合「polymorphism」的源代码
代码结果 740
www.eeworm.com/read/313151/13595378
java sandwich8.java
// interfaces/Sandwich8.java
// TIJ4 Chapter Interfaces, Exercise 8, page 320
/* In polymorphism.Sandwich.java, create an interface called FastFood (with
* appropriate methods) and change Sandwich
www.eeworm.com/read/311052/13637917
java shapes.java
//: Shapes.java
// Polymorphism in Java
class Shape {
void draw() {}
void erase() {}
}
class Circle extends Shape {
void draw() {
System.out.println("Circle.draw()");
}
void erase
www.eeworm.com/read/311048/13637978
java shapes.java
//: Shapes.java
// Polymorphism in Java
class Shape {
void draw() {}
void erase() {}
}
class Circle extends Shape {
void draw() {
System.out.println("Circle.draw()");
}
void erase
www.eeworm.com/read/311046/13638016
java shapes.java
//: Shapes.java
// Polymorphism in Java
class Shape {
void draw() {}
void erase() {}
}
class Circle extends Shape {
void draw() {
System.out.println("Circle.draw()");
}
void erase
www.eeworm.com/read/478118/6720370
java sandwich8.java
// interfaces/Sandwich8.java
// TIJ4 Chapter Interfaces, Exercise 8, page 320
/* In polymorphism.Sandwich.java, create an interface called FastFood (with
* appropriate methods) and change Sandwich
www.eeworm.com/read/344239/11895265
java fieldaccess.java
//: polymorphism/FieldAccess.java
// Direct field access is determined at compile time.
class Super {
public int field = 0;
public int getField() { return field; }
}
class Sub extends Su
www.eeworm.com/read/344238/11897819
java sandwich8.java
// interfaces/Sandwich8.java
// TIJ4 Chapter Interfaces, Exercise 8, page 320
/* In polymorphism.Sandwich.java, create an interface called FastFood (with
* appropriate methods) and change Sandwich
www.eeworm.com/read/490333/1200098
cs abstractshapestest.cs
// Fig. 10.8: AbstractShapesTest.cs
// Demonstrates polymorphism in Point-Circle-Cylinder hierarchy.
using System;
using System.Windows.Forms;
namespace AbstractShapes
{
public class Abstra
www.eeworm.com/read/490333/1200102
cs abstractshapestest.cs
// Fig. 10.8: AbstractShapesTest.cs
// Demonstrates polymorphism in Point-Circle-Cylinder hierarchy.
using System;
using System.Windows.Forms;
namespace AbstractShapes
{
public class Abstra
www.eeworm.com/read/228954/4761743
cs abstractshapestest.cs
// Fig. 7.8: AbstractShapesTest.cs
// Demonstrates polymorphism in Point-Circle-Cylinder hierarchy.
using System;
using System.Windows.Forms;
namespace AbstractShapes
{
public class Abstrac