Computer Science, asked by rhchn9619, 8 months ago

Create a class named 'programming'. While creating an object of the class, if nothing is passed to it, then the message "i love programming languages" should be printed. If some string is passed to it, then in place of "programming languages" the name of that string variable should be printed. For example, while creating the object if we pass "cpp", then "i love cpp" should be printed.

Answers

Answered by mdsamar66
5

Answer:

Create a class named 'programming'. While creating an object of the class, if nothing is passed to it, then the message "i love programming languages" should be printed. If some string is passed to it, then in place of "programming languages" the name of that string variable should be printed. For example, while creating the object if we pass "cpp", then "i love cpp" should be printed.ok by others posts bfvv

Similar questions