Answer:
Class are the collection of variable and member function.
Class are the blueprint of an object.
Explanation:
Following are the points regarding class in c++
1.In C++ class is an user defined datatype..
2.Classes are the collection of variable and function in c++.
3.To access the property of class we can create object of that class
4.We can use following syntax to declared any class in c++
class classname
{
accessmodifier:
//statement and function
};
main()
{
classname objectname;
}
implementation of class in c++
#include<iostream>
class test // class declaration
{
public: // access modifier
void fun3() // Method definition
{
cout<<" hello :";
}
};
void main() // main function
{
test ob;// creating object
ob.fun3(); // calling function
}
In this program we declared a class "test " in class test. We giving public access modifier .The public access modifier define that variable and function are accessible outside the class and in main method we create the object ob which call the function fun3().
Output:hello :
In OpenOffice Writer, you can insert comments with the Comment option under the Insert tab. Alternatively, you can use the Ctrl+Alt+N keys.
Answer:
False
Explanation:
Byte(B) is uppercase
bit(b) is lowercase
Good way to remember is that its takes 8 bits makes a byte. In other word, a byte is bigger than a bit so it makes sense that byte is uppercase.
Answer:
Rep;ace the blank with
smaller, bigger
So, the complete line is:
smaller,bigger=order_numbers(100,99)
Explanation:
From the question, we understand that the program is to return the order of a number from least to highest
This has been well implemented in order_numbers function
Because the order function returns two values, the order_function must be called in order to accept two values and the syntax is:
<em>value1,value2 = function(return-value1,return-value2)</em>
In this case, the statement is:
smaller,bigger=order_numbers(100,99)
So, in the next line of the main, the values of smaller and bigger are printed:
<em>print(smaller,bigger)</em>
See attachment
Icon need to use 20 characters <span />