Question

C# PROGRAMMING One of the differences between Business Objects and GUI Objects is that you cannot...

C# PROGRAMMING

  1. One of the differences between Business Objects and GUI Objects is that you cannot use inheritance with GUI Objects.
  1. True
  2. False

  1. 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.
  1. True
  2. False

Homework Answers

Answer #1

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!!!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Classes/ Objects(programming language java ) in software (ATOM) Write a Dice class with three data fields...
Classes/ Objects(programming language java ) in software (ATOM) Write a Dice class with three data fields and appropriate types and permissions diceType numSides sideUp The class should have A 0 argument (default) constructor default values are diceType: d6, numSides: 6, sideUp: randomValue 1 argument constructor for the number of sides default values are diceType: d{numSides}, sideUp: randomValue 2 argument constructor for the number of sides and the diceType appropriate accessors and mutators *theoretical question: can you change the number of...
Please create an array of Leg objects, one constructor that takes three parameters as constant C...
Please create an array of Leg objects, one constructor that takes three parameters as constant C string, and one number representing the distance in miles between the two cities Write a code block to create a static array (that is, not dynamic and not a vector) of 3 Leg objects using city names of your choosing. That's THREE objects, each created using THREE parameters. For example, the Leg class declaration looked like, class Leg { const char* const startCity; const...
java CLASS DESIGN GUIDELINES 1. Cohesion • [✓] A class should describe a single entity, and...
java CLASS DESIGN GUIDELINES 1. Cohesion • [✓] A class should describe a single entity, and all the class operations should logically fit together to support a coherent purpose. • [✓] A single entity with many responsibilities can be broken into several classes to separate the responsibilities. 2. Consistency • [✓] Follow standard Java programming style and naming conventions. Choose informative names for classes, data fields, and methods. A popular style is to place the data declaration before the constructor...
My assignment is listed below. I already have the code complete, but I cannot figure out...
My assignment is listed below. I already have the code complete, but I cannot figure out how to complete this portion: You must create a makefile to compile and build your program. I can't figure out if I need to create a makefile, and if I do, what commands do I use for that? Create a  ContactInfo class that contains the following member variables: name age phoneNumber The ContactInfo class should have a default constructor that sets name = "", phoneNumber...
The premise of this project is to make a basic GUI and code for the game...
The premise of this project is to make a basic GUI and code for the game Keno. The specifics of the gui and game are below. Description: In this project you will implement the popular casino and state lottery game, Keno. This is a somewhat simple game to understand and play which should allow you to focus on learning GUI development in JavaFX and trying your hand at event driven programing. Implementation Details: You may add as many classes, data...
3. Individual Problems 14-3 Your family business uses a secret recipe to produce salsa and distributes...
3. Individual Problems 14-3 Your family business uses a secret recipe to produce salsa and distributes it through both smaller specialty stores and chain supermarkets. The chain supermarkets have been demanding sizable discounts, but you do not want to drop your prices to the specialty stores. True or False: One way to offer a lower price while defending yourself against antitrust lawsuits would be to offer a volume discount for larger salsa orders. True False
Imagine you have a length of copper pipe and two small solid cylindrical objects - one...
Imagine you have a length of copper pipe and two small solid cylindrical objects - one made of aluminum (or plastic, if you wish) and the other is a bar magnet. You may assume that the aluminum cylinder and the bar magnet have the same size (small enough to fit through the copper pipe without touching the sides) and mass. Now imagine dropping the aluminum through the copper pipe, and then dropping the bar magnet through the copper pipe. Do...
The null hypothesis is the prediction that there are no differences between the mean of the...
The null hypothesis is the prediction that there are no differences between the mean of the population and the mean of your sample. Question 1 options: True False Save Question 2 (1 point) The hypothesis that your sample mean is significantly different from the population mean is called the Alternative hypothesis or _________________. Question 2 options: a) Null hypothesis b) Research Hypothesis c) One-Tailed Test d) Two-Tailed test Save Question 3 (1 point) If you are running a test to...
Write in C++. Define a class called Text whose objects store lists of words. The class...
Write in C++. Define a class called Text whose objects store lists of words. The class Text will be just like the class StringVar except that the class Text will use a dy- namic array with base type StringVar rather than base type char and will mark the end of the array with a StringVar object consisting of a single blank, rather than using '\0' as the end marker. Intuitively, an object of the class Text represents some text consisting...
Goal:   Manage the inventory of objects sold in an online or brick and mortar store. If...
Goal:   Manage the inventory of objects sold in an online or brick and mortar store. If you can't implement all of the features of Project described in this document, implement what you can. Start by implementing the StockItem class, and its derived classes. Then add in the InventoryManager class later. In each case, the test files must be in separate classes. UML Diagram: Use Violet or other drawing software to draw the UML diagrams of each class that you use...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT