Need further information!!!
Answer:
The answers are explained below
Explanation:
1) Identify the potential classes in this problem domain be list all the nouns
class Customer
class Acco unt
2) Refine the list to include only the necessary class names for this problem
the class customer is not necessary to solve the problem itself, therefore the only class could be the account class
3) Identify the responsibilities of the class or classes.
The responsibilities of the class account will be
* determination of the type of account--> Acc ount . type(char)
* deposit money into the account --> Acc ount . de posit(float)
* withdraw money into the account --> Acc ount . with draw(float)
* show balance of the account --> Acc ount . bal ance()
* generate interest --> Acc ount . int erest()
Please join the words together. I used spaces due to regulations
Answer:
a. Partly True
b. True
Explanation:
(a) "new" keyword or syntax is used for the constructors while working in Perl and Moose object system for Perl.
For Visual Basics .Net, keyword "New" is used
For Python, "___new___" is used which allocates memory for instance and receives class as an argument.
For Objective-C, "alloc" and "init" are used for constructor method. "alloc" allocates memory for the instance and "init" handles the bulk of initializing the instance. Whereas, the "new" keyword calls both "alloc" and "init" for class instance.
(b) A constructor does not return any value because it is called by the memory allocation and object initialization code in the runtime and not directly by your code.