代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/166055/10038001
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/166055/10038017
java book2.java
//********************************************************************
// Book2.java Author: Lewis/Loftus
//
// Represents a book. Used as the parent of a dervied class to
// demonstrate
www.eeworm.com/read/279032/10481164
htm ei44.htm
Effective C++, 2E | Item 44: Say what you mean; understand w
www.eeworm.com/read/279032/10481227
htm ei35.htm
Effective C++, 2E | Item 35: Make sure public inheritance mo
www.eeworm.com/read/159520/10644136
java ch9ex3.java
class base{
private int x;
public base(int n){x=n;}
public int get(){return x;}
public void setb(int n){x=n;};
}
class inheritance extends base{
private int k;
public inheritance(int b
www.eeworm.com/read/332978/7141881
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/449122/7518083
c python.c
/*
* $Id: python.c,v 1.8 2003/04/01 04:55:27 darren Exp $
*
* Copyright (c) 2000-2003, Darren Hiebert
*
* This source code is released for free distribution under the terms of the
* GNU
www.eeworm.com/read/447044/7559834
txt listing6-08_changingclassinheritance.txt
// you can use this snippet to change the class inheritance
// in your Java source code:
public class SplashScreen
//#ifdef polish.classes.fullscreen:defined
//#= extends ${ polish.classes.full
www.eeworm.com/read/435150/7796586
cpp prog15_07a.cpp
// Program 15.7a Using multiple inheritance. Compilable version!
// File: prog15_07a.cpp
#include
#include "CerealPack.h" // For the CerealPack class
using std::cout;
usi
www.eeworm.com/read/435150/7796588
cpp prog15_07.cpp
// Program 15.7 Using multiple inheritance File: prog15_07.cpp
#include
#include "CerealPack.h" // For the CerealPack class
using std::cout;
using std::endl;
int main()