answersLogoWhite

0


Best Answer

public class DateDemo {

public void DisplayDate() {

Console.WriteLine(DateTime.Now.Date);

}

}

// usage:

DateDemo demo = new DateDemo();

demo.DisplayDate();

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 4 Create a console application that contains a class DateDemowhich has a method named DisplayDate which when called displays the current date?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When pressed this key displays an items shortcut menu?

application


What an application that displays a box an oval an arrow and diamond using asterisks?

Yes


What is MessageBox?

Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.


Is client software that displays Web page elements and handles links between pages?

A browser is such an application software. It displays the webpages and links them to one another.


What is the rectangular area on a computer screen that contains a document or displays an activity?

A window


What displays the name of the current document and application in Microsoft Word?

The title bar.


What is A rectangular area on the computer screen that contains a document or displays an activity?

window


What is a title bar in ms-publisher?

In MS Publisher, the title bar is the top horizontal bar of the application window that displays the name of the publication you are currently working on. It also contains the minimize, maximize, and close buttons on the right side to manage the window.


What does the primary monitor do in a multiple-monitor configuration?

It displays the opening screen of any application a user opens It displays the logon screen, prompts, and windows It can run DirectX applications in full-screen mode


What are the features on a title bar?

The close button, the minimize button, the maximize button, the document title and the icon


Define a cell?

smallest unit that displays the properties of life; always contains cytoplasm surrounded by a plasma membrane.


What Excel displays in cells to indicate a divide by zero error?

#DIV/0! Microsoft Excel displays the #DIV/0! error when a number is divided either by zero (0) or by a cell that contains no value.