Class as a user defined function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swastikgupta
    New Member
    • Dec 2017
    • 1

    Class as a user defined function

    1)Write a program in Java by using a class with the following specifications-
    Class name:stringmani p
    Data members:String s,rev
    Member functions:
    Void getstr()- to accept a string
    Void reverse()- to reverse and print each word
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    Please show us what you have written so far and we will help you where you have problems.

    Comment

    Working...