代码搜索:Inheritance
找到约 1,689 项符合「Inheritance」的源代码
代码结果 1,689
www.eeworm.com/read/388617/8595315
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/388617/8595847
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/388617/8596384
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/388617/8596893
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/430096/8766758
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/187222/8840644
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/187222/8840654
java music.java
//: Music.java
// Inheritance & upcasting
class Note {
private int value;
private Note(int val) { value = val; };
public static final Note
middleC = new Note(0),
cSharp = new Note(1),
www.eeworm.com/read/281848/9130101
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/373369/9460336
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/175135/9558494
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::