代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/332899/12717872
java rodent9.java
// polymorphism/rodent/Rodent9.java
// TIJ4 Chapter Polymorphism, Exercise 9, page 289
/* Create an inheritance hierarchy of Rodent:Mouse, Gerbil, Hamster, etc. In the
* base class, provide methods
www.eeworm.com/read/142788/12920303
h engineobjects_de.h
#ifndef __ENGINEOBJECTS_DE_H__
#define __ENGINEOBJECTS_DE_H__
#include "basedefs_de.h"
/*
This is the very base class. You MUST derive from this!
For C inheritance, you should put the
www.eeworm.com/read/325023/13230906
java music.java
//: polymorphism/music/Music.java
// Inheritance & upcasting.
package polymorphism.music;
public class Music {
public static void tune(Instrument i) {
// ...
i.play(Note.MIDDLE_C);
www.eeworm.com/read/313151/13595224
java rodent9.java
// polymorphism/rodent/Rodent9.java
// TIJ4 Chapter Polymorphism, Exercise 9, page 289
/* Create an inheritance hierarchy of Rodent:Mouse, Gerbil, Hamster, etc. In the
* base class, provide methods
www.eeworm.com/read/311052/13637898
java wind.java
//: Wind.java
// Inheritance & upcasting
import java.util.*;
class Instrument {
protected void play() { System.out.println("Instrument playing"); }
static void tune(Instrument i) {
i.play(
www.eeworm.com/read/311048/13637963
java wind.java
//: Wind.java
// Inheritance & upcasting
import java.util.*;
class Instrument {
protected void play() { System.out.println("Instrument playing"); }
static void tune(Instrument i) {
i.play(
www.eeworm.com/read/311046/13637999
java wind.java
//: Wind.java
// Inheritance & upcasting
import java.util.*;
class Instrument {
protected void play() { System.out.println("Instrument playing"); }
static void tune(Instrument i) {
i.play(
www.eeworm.com/read/136989/5829935
readme
This test make sure that the collocation scheme works fine in case
of diamond shaped multiple inheritance. The case taken into account
is the follo
www.eeworm.com/read/131315/5936543
c cp-search.c
/* Breadth-first and depth-first routines for
searching multiple-inheritance lattice for GNU C++.
Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
Contributed by Michael Tiemann
www.eeworm.com/read/487286/6518354
java test.java
package inheritance1;
class Animal{
static int age;
public Animal(){
}
public Animal(int age){
this.age=age;
}
}
class Cat extends Animal{
int age;
public Cat(int age