Answer:
Following are the program definition in the Java Programming Language.
//define a class
public class Clock
{
//set integer type variable and initialize value
private int hours=12;
//set boolean type variable and initialize value
private boolean isTicking=true;
//set integer type variable and initialize value
private Integer diff=5;
}
Explanation:
Following are the description of Code.
- Firstly define a class "Clock" with the "private" access modifier.
- Then, set the integer data type variable "hours" with the "private" access modifier and assign value 12 in that class.
- After that, set the boolean data type variable "isTicking" with the "private" access modifier and assign value "true".
- Finally set Integer class variable "diff" with the the private access modifier and assign value 5.
Source code contains instructions written by a programmer specifying the actions to be performed by computer softwa
Answer:
In c# Dictionary is the collection of keys and value .The dictionary is a generic collection class which is in the System.Collection.Generics namespace. we can represent dictionary like that Dictionary<TKey, TValue> where TKey represent the type of key and TValue is the type of TValue.
Following are the example which represent dictionary as integer and string
using System.Collections.Generic; // namespace
class Test // class test
{
static void Main() // main method
{
var ob = new Dictionary< int,string>(); // type integer and string
dictionary.Add( 2,"hello");
dictionary.Add(143,"hello1);
// The dictionary has 2 pairs.
Console.WriteLine("DICTIONARY 1 " + ob.Count);
}
}
Output:
DICTIONARY 1 :2
Explanation:
In this program we create a dictionary generic class which is integer and string type after that we add the elements in the dictionary by "dictionary.Add method " and finally print the count of dictionary
Answer:
An assembler.
Explanation:
Input is (as with any programming language) files with lists of instructions (typically assembler mnemonics), output is a binary format representing these instructions in machine language.
Answer:
Clipboard, Slides, Font, Paragraph, Drawing, and Editing