Answer:
Super Class.
Explanation:
The objects in the sub class or the child class have access to the super class or base class.
for example:-
class vehicle{
public int color;
public int numtyres;
public void type()
{
if(numtyres==2)
{
system.out.println("Two wheeler");
}
else if(numtyres==3)
{
system.out.println("Three wheeler");
}
else
system.out.println("four wheeler");
}
}
class motorvehicle extends vehicle{
public int gears;
public int eng_cap_cc;
}
In the above written classes class motorvehicle has access to the method type of the class vehicle and vehicle is the superclass of motorvehicle.
Answer:
Answer given below
Explanation:
Program:
1. double balance;
2. try{
3. cout<<"Enter the balance :";
4. cin >> balance;
5. cout<<endl;
6. if(balance < 1000.00)
7. throw balance;
8. cout<<"Leaving the try block."<<endl;
9. }
10. catch(double x){
11. cout<<" Current balance : "<<x<<endl<<"Balance must be greater than 1000.00"<<endl;;
12. }
Answer A:
If we consider the above program lines, try block represents from 2 to 9 lines.
Answer B:
If we consider the above program lines, catch block represents from 10 to 12 lines.
Answer C:
catch block parameter is x and its type is double.
Answer D:
If we consider the above program lines, line number 7 indicates throw statement.
Definitely talk to them irl and if it doesn't work email them and try to work things out or before talking to them tell a trusted adult about how it made it feel
Answer:
a) 255
b) 61602
c)
d)
Explanation:
You need to understand the decimal equivalent of hexadecimal numbers, <em>from 0 to 9 numbers are represented the same way, from 10 to 15 we use the alphabet, meaning 10 equals A in hexadecimal base, 11-B, 12-C, 13-D, 14-E, and 15-F.</em>
For your first exercise you'll enumerate the number's positions fromright to lef begining with 0:
a. F F
position 1 0
Now you'll multiply your hexadecimal number (using the decimal equivalent for your letters) for the base (16) elevated to the number of the position:
Finally, you'll add your results:
240+15=255
FF=255
b. F 0 A 2
position 3 2 1 0
F0A2=61602
c. F 1 0 0
position 3 2 1 0
0F100=61696
d. 1 0 0
position 2 1 0
100=256
I hope you find this information useful! Good luck!
Answer: The difference between the UML state diagram and state transition diagram are as follow:-
- State-transition diagrams display the states of the object where the change takes place whereas the UML(Unified modeling language) state diagrams are representation of parts of system at certain time instance.
- State-transition diagram requires the condition to be accomplished before the transition happens whereas the dynamic behavior of the states are expressed by transitions in UML state diagrams.