codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
// Objetos - constructor de clase - Herencia del constructor // conflictos #include <iostream> using namespace std; const int MAXSIZE = 20; class Board { //3 protected: char x[MAXSIZE][MAXSIZE]; int size; public: //2 Board() {} Board(int t) { size = t; } void print(); }; class ChessBoard : Board { public: //1 ChessBoard(int m) { size = m; } void init(); }; int main() { ChessBoard chess(8); } void Board::print() { //for () } void ChessBoard::init() { }
Private
[
?
]
Run code
Submit