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 object if we pass "C++", then "I love C++" should be
printed.
Answers
Answered by
0
Explanation:
u can use if else condition here..
Similar questions