adplus-dvertising
frame-decoration

Question

It is disadvantageous to use public variables in classes because ___________

a.

Its values cannot be initialized

b.

It results in compilation error

c.

It cannot be accessed by other variables

d.

It cannot control its values

Posted under Visual Basic

Answer: (d).It cannot control its values

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. It is disadvantageous to use public variables in classes because ___________

Similar Questions

Discover Related MCQs

Q. _______ variables of a class are not visible to applications that use the instance of that class.

Q. You create a Public property using a _______ procedure.

Q. The ________ keyword indicates that the property’s value can be retrieved (read) by an application.

Q. The ________ keyword indicates that an application can set the property’s value, but it cannot retrieve the value.

Q. The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.

Q. A ________ is a special computer that serves webpages.

Q. A _______ computer requests web pages from the server.

Q. A ________ web page is not interactive and is used to display information only.

Q. ASP is a ________ language that tells the client’s browser how to render the page on the computer screen.

Q. Text that cannot be changed by the user is termed as _____ text.

Q. The first webpage added to an application is the _______ page.

Q. _______ property sets the border of an image.

Q. _______ initializes a new instance of Line class.

Q. The background color of a Web page is determined by the ______ property.

Q. A ______ Web page contains controls with which the user can interact.

Q. A button’s _______ event is used to run code.

Q. The ______ validator is used to compare an entry with a constant value or the property stored in a control.

Q. The ______ validator is used to display all of the validation error messages in a single location on aWeb page.

Q. The ______ validator is used to verify that an entry is within the specified minimum and maximum values.

Q. The ______ validator is used to verify that an entry matches a specific pattern.