代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/366702/2862247
c pr20927.c
/* This caused an ICE on s390x due to a reload inheritance bug. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct point { double x, y; };
extern void use (struct point);
void test (stru
www.eeworm.com/read/366702/2871568
c p6610a.c
// { dg-do run }
// prms-id: 6610
// There is a bug in vtable thunks with multiple/virtual inheritance.
int fail = 1;
struct B;
struct A { virtual int f(const B*) = 0; int g(const B*); };
int A::g(c
www.eeworm.com/read/133648/14031490
java cartoon.java
//: c06:Cartoon.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Constructor calls during inheritance.
class Art {
Art(
www.eeworm.com/read/133648/14032112
java music.java
//: c07:music:Music.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Inheritance & upcasting.
class Note {
private int
www.eeworm.com/read/112278/15490398
java music.java
//: c07:music:Music.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Inheritance & upcasting.
class Note {
private int
www.eeworm.com/read/112277/15490433
java cartoon.java
//: c06:Cartoon.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Constructor calls during inheritance.
class Art {
Art(
www.eeworm.com/read/432289/8613243
h sorted.h
//: C16:Sorted.h
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Template inheritance
#ifndef SORTED_H_
#def
www.eeworm.com/read/377523/9272606
java wind.java
//: c06:Wind.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Inheritance & upcasting.
import java.util.*;
class Instrume
www.eeworm.com/read/178378/9404561
h sorted.h
//: C16:Sorted.h
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Template inheritance
#ifndef SORTED_H_
#def
www.eeworm.com/read/140892/13054122
java placesetting.java
//: c06:PlaceSetting.java
// Combining composition & inheritance.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import com.