//: C05:Class.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Similarity of struct and class
import java.io.*;
public class ReadBytes {
public static void main(String[] arguments) {
try {
FileInputStream file = new
FileInputStream("class.dat");
//: C05:Class.cpp {O}
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Similarity of struct and class
struct
//class.h
#ifndef CLASS
#define CLASS
class Class{
public:
Class(int v):value(v){ staticV++; }
~Class(){ staticV--; }
int Get(){ return value; }
static int staticV;
protected: