Arezoo Sh

Arezoo Sh

  • NA
  • 7
  • 11.4k

Property

Jul 24 2011 3:18 AM
hi

Would any body like to help me to write the programme below?

  in the class Test, there are 2 property (string s3, s4), string s3 just keep the numbers and string s4 just keep the letters.
forexmple in the main program:


if we assigned "asd3426ghf" to Test.s3:

   Test.s3="asd3426ghf";
   propert s3 only keeps, 3426, not asdghf

and

if we assigned "asd3426ghf" to Test.s4:

  Test.s4="asd3426ghf";
   property s4 only keeps, asdghf, not 3426

how will it happen?
plz help me.

 

Answers (4)