Answer:
The answer for the given question is as follows:
There are two Constructors first one is the default Constructor and the second one Parameterized Constructor.
Explanation:
Constructor Definition:
Constructor is a special member function that task is to initialized as an object of its class.
To define constructor some rules can be given as:
1) The constructor name and class name must be the same.
2) In constructors, there is no return type, even void.
3) The constructor is automatically called when the class object is created.
There are 3 of constructor that can be given as :
a)Default constructor.
b) Parameterized constructor.
c)Copy constructor.
Answer:
int1=int(input("Enter integer :\n"))#taking input of first number.
int2=float(input("Enter the power :\n"))#taking input of the power.
if int2 == 0.5 and int1<0:#condition for negative square root.
print("Cannot calculate the square root of negative numbers")#printing the message.
else:#else calculating the result.
res=int1**int2
print(res)
output:-
Enter integer :
-5
Enter the power :
0.5
Cannot calculate the square root of negative numbers
Explanation:
In the above program I have taken input of the number and the power.Since power can be decimal number taking it as float.If the number is negative and the power is 0.5 then printing the message for not calculating the value else calculating the value and storing it in the res printing the res.
bhuesjyes sometimes i don´t wanna be happy don´t hold it against me...
all jokes aside love yourself and be happy
Wireless fidelity (Wi-Fi) is known simply as a wired LAN that does not have cables. Wifi is a medium-range wireless network.
- WiFi configuration is made of of transmitter with an antenna. It is the wireless access point because it connects to a wired LAN or to satellite dishes that gives an Internet connection.
Wi-Fi is the mostly used type of medium-range wireless communication system.
Medium-range Wi-Fi signal can take about 100 meters and they also not take as far as cellular signals.
Learn more from
brainly.com/question/20812811