代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/285874/8807225
htm ei35.htm
Effective C++, 2E | Item 35: Make sure public inheritance mo
www.eeworm.com/read/384831/8839736
java wind.java
//: reusing/Wind.java
// Inheritance & upcasting.
class Instrument {
public void play() {}
static void tune(Instrument i) {
// ...
i.play();
}
}
// Wind objects are instrume
www.eeworm.com/read/428538/8860853
java pizza.java
//********************************************************************
// Pizza.java Author: Lewis/Loftus
//
// Represents a pizza, which is a food item. Used to demonstrate
// indirect r
www.eeworm.com/read/428538/8860900
java book.java
//********************************************************************
// Book.java Author: Lewis/Loftus
//
// Represents a book. Used as the parent of a derived class to
// demonstrate i
www.eeworm.com/read/428530/8861273
java firm.java
//********************************************************************
// Firm.java Author: Lewis/Loftus
//
// Demonstrates polymorphism via inheritance.
//********************************
www.eeworm.com/read/373369/9460517
java wind.java
//: reusing/Wind.java
// Inheritance & upcasting.
class Instrument {
public void play() {}
static void tune(Instrument i) {
// ...
i.play();
}
}
// Wind objects are instrume
www.eeworm.com/read/169058/9883232
java wind.java
//: reusing/Wind.java
// Inheritance & upcasting.
class Instrument {
public void play() {}
static void tune(Instrument i) {
// ...
i.play();
}
}
// Wind objects are instrume
www.eeworm.com/read/166055/10037973
java firm.java
//********************************************************************
// Firm.java Author: Lewis/Loftus
//
// Demonstrates polymorphism via inheritance.
//********************************
www.eeworm.com/read/166055/10037979
java foodanalysis.java
//********************************************************************
// FoodAnalysis.java Author: Lewis/Loftus
//
// Demonstrates indirect referencing through inheritance.
//************
www.eeworm.com/read/166055/10037996
java dictionary.java
//********************************************************************
// Dictionary.java Author: Lewis/Loftus
//
// Represents a dictionary, which is a book. Used to demonstrate
// inher