Yurttas/PL/SL/ruby/F/02/08/01/b01.rb
Jump to navigation
Jump to search
1#
2# Copyright(C) 2008
3# All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4#
5# Permission to use, copy, modify, and distribute this
6# software and its documentation for EDUCATIONAL purposes
7# and without fee is hereby granted provided that this
8# copyright notice appears in all copies.
9#
10# date : January 1, 2008.
11# author : Salih Yurttas.
12#
13# b01.rb
14#
15
16
17require "B"
18
19#main
20
21b_0 = B.new(2,8)
22
23print "b_0 values after default construction"
24print "\n"
25
26print b_0.i1
27print "\n"
28
29print b_0.i2
30print "\n"
31
32b_0.i1 = 7
33b_0.i2 = 5
34
35print "\n"
36
37print "b_0 values after set b_0.i1 = 7 and b_0.i2 = 5"
38print "\n"
39
40print b_0.i1
41print "\n"
42
43print b_0.i2
44print "\n"