C# PROGRAMMING
1. One of the differences between Business Objects and GUI Objects is that you cannot use inheritance with GUI Objects.
Correct Answer:-
b. False
Yes, we cannot use inheritance with GUI objects like Pointer, Button and checkbox etc.
2. If you build one constructor, that takes 3 args, for a class, you then lose the default constructor. So if you want this default constructor, you have to build it yourself.
Correct Answer:-
a. True
Explanation:-
If you have only defined a three-args constructor, then you cannot instantiate objects using default constructor in C#. If you want to, you have to explicitly define that default constructor.
See below program is showing error as we are accessing object using default constructor but it is showing error:
----------------------------------------------------------------------
COMMENT DOWN FOR ANY QUERIES!!!
HIT A THUMBS UP IF YOU DO LIKE IT!!!
Get Answers For Free
Most questions answered within 1 hours.