--------------------------------------------------------------------------
ASSIGNMENT -1 Dt : 11-12-2019 20m (3rd CSE-1 & 2)
--------------------------------------------------------------------------
Define a class Numbers
with one data member to store number of
integers (use array or vector) and
methods follows
methods :
public Numbers(int [])
to initialise class instance member(array)
public int calculateSum()
to return sum of numbers
public static calculateSum(int [])
to return sum of numbers
NOTE:
*implement the above Numbers class
object and methods in another class
and find observations.
------------------------------------------------------------------------
ASSIGNMENT -1 Dt : 11-12-2019 20m (3rd CSE-1 & 2)
--------------------------------------------------------------------------
Define a class Numbers
with one data member to store number of
integers (use array or vector) and
methods follows
methods :
public Numbers(int [])
to initialise class instance member(array)
public int calculateSum()
to return sum of numbers
public static calculateSum(int [])
to return sum of numbers
NOTE:
*implement the above Numbers class
object and methods in another class
and find observations.
------------------------------------------------------------------------
No comments:
Post a Comment