Which statement is used to define a class in visual basic?

Class statement
Event statement
Event class statement
Form class statement

The correct answer is: A. Class statement

A class is a blueprint for creating objects. It defines the properties, methods, and events that an object has. The class statement is used to define a class in Visual Basic.

The event statement is used to define an event in Visual Basic. An event is something that happens to an object, such as a button being clicked or a text box being changed.

The event class statement is not a valid statement in Visual Basic.

The form class statement is used to define a form in Visual Basic. A form is a window that appears on the screen.

Exit mobile version