代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/478118/6720217
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/403011/11524379
cpp studenti.cpp
// studenti.cpp -- Student class using private inheritance
#include "studenti.h"
using std::ostream;
using std::endl;
using std::istream;
using std::string;
// public methods
double Student::
www.eeworm.com/read/403011/11524517
h dma.h
// dma.h -- inheritance and dynamic memory allocation
#ifndef DMA_H_
#define DMA_H_
#include
// Base Class Using DMA
class baseDMA
{
private:
char * label;
int rating;
www.eeworm.com/read/403009/11524684
cpp studenti.cpp
// studenti.cpp -- Student class using private inheritance
#include "studenti.h"
using std::ostream;
using std::endl;
using std::istream;
using std::string;
// public methods
double Student::
www.eeworm.com/read/403009/11524822
h dma.h
// dma.h -- inheritance and dynamic memory allocation
#ifndef DMA_H_
#define DMA_H_
#include
// Base Class Using DMA
class baseDMA
{
private:
char * label;
int rating;
www.eeworm.com/read/158649/11594993
java chess.java
//: c06:Chess.java
// Inheritance, constructors and arguments.
import com.bruceeckel.simpletest.*;
class Game {
Game(int i) {
System.out.println("Game constructor");
}
}
class Boar
www.eeworm.com/read/158649/11594999
java wind.java
//: c06:Wind.java
// Inheritance & upcasting.
import com.bruceeckel.simpletest.*;
import java.util.*;
class Instrument {
public void play() {}
static void tune(Instrument i) {
// ...
www.eeworm.com/read/158649/11595006
java cartoon.java
//: c06:Cartoon.java
// Constructor calls during inheritance.
import com.bruceeckel.simpletest.*;
class Art {
Art() {
System.out.println("Art constructor");
}
}
class Drawing exten
www.eeworm.com/read/344239/11895253
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/344238/11897551
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