Click here to Skip to main content
15,910,878 members

Comments by Member 8097131 (Top 1 by date)

Member 8097131 21-Jul-11 21:35pm View    
there are two problems in this solution
(1) Abstract class can not have object of it.
(2) Object of derived class will call constructor of Abstract class and initialize it to zero. So, every time object created, "a" will become zero. but i want a single time initialization thats why i kept it "static".