代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/346994/11706347
cpp employee.cpp
// Inheritance illustrated
#include
#include
#define MAX_LEN 81
class person {
protected:
char fname[MAX_LEN];
char lname[MAX_LEN];
int age;
public:
www.eeworm.com/read/344239/11895484
java bigegg2.java
//: innerclasses/BigEgg2.java
// Proper inheritance of an inner class.
import static net.mindview.util.Print.*;
class Egg2 {
protected class Yolk {
public Yolk() { print("Egg2.Yolk()"); }
www.eeworm.com/read/225725/14521607
htm ei39.htm
Effective C++, 2E | Item 39: Avoid casts down the inheritance hierarchy Back to Item 38: Never redefine an inherited default parameter value.
Continue to Item 40: Model "has-a" or "is-implemented-in-
www.eeworm.com/read/225725/14521705
htm ei40.htm
Effective C++, 2E | Item 40: Model "has-a" or "is-implemented-in-terms-of" through layering Back to Item 39: Avoid casts down the inheritance hierarchy.
Continue to Item 41: Differentiate between inh
www.eeworm.com/read/247212/4484602
cc main.cc
#include "inheritance.h"
#ifdef HAVE_ANSI_CPLUSPLUS_HEADERS
#include
#else // HAVE_ANSI_CPLUSPLUS_HEADERS
#include
#endif // HAVE_ANSI_CPLUSPLUS_HEADERS
using namespace std;
www.eeworm.com/read/240162/4583160
c conversion6.c
// { dg-do run }
// PRMS Id: g++/6034
extern "C" int printf (const char *, ...);
class Base
{
char x;
};
template
// remove the public Base inheritance and the problem goes away...
clas
www.eeworm.com/read/233448/4672364
c vthunk1.c
// PR c++/12007 Multiple inheritance float pass by value fails
// { dg-do run }
extern "C" void abort (void);
class gvImpl
{
public:
virtual void PutVal(float value){}
};
class foo { public: virt
www.eeworm.com/read/233448/4675979
c conversion6.c
// { dg-do run }
// PRMS Id: g++/6034
extern "C" int printf (const char *, ...);
class Base
{
char x;
};
template
// remove the public Base inheritance and the problem goes away...
clas
www.eeworm.com/read/162614/5518816
c vthunk1.c
// PR c++/12007 Multiple inheritance float pass by value fails
// { dg-do run }
extern "C" void abort (void);
class gvImpl
{
public:
virtual void PutVal(float value){}
};
class foo { public: virt
www.eeworm.com/read/162614/5522424
c conversion6.c
// { dg-do run }
// PRMS Id: g++/6034
extern "C" int printf (const char *, ...);
class Base
{
char x;
};
template
// remove the public Base inheritance and the problem goes away...
clas