The answer is
A. your information is more accurate and useful
I hope it helps you. Please mark me brainliest answer.
Classes cannot Initialize data members in the class definition.
B) Initialize data members in the class definition
<u>Explanation:</u>
Class is defined by end user data type where it can handle multiple data type and referred to other classes also. Class is also called as data structure object or object class.
Due to class methods total programming language coding style is changes. For example employee of an organization should hold his or her employee number, address detail, spouse details, salary details
Where in old style programming language we need to declare separate variable to hold the data types, where we can define employee as class which can hold employee number, address fields, and again define salary details as other class and add employee->employee number where key connect between to class which is called derived class.
I have write a very simple code for you in python and i hope it will help you a lot.
def generateString(char, val):
print(char * val)
Explanation:
This is how you can create your function in python and this function will give you the desired output.
How to Call a function:
generateString('a',12)
this is how you can call the function to get output.
I hope you get the idea.