Answer:
Encapsulation:-It is the binding of the data and functions so that they works as one unit.
Inheritance:-When one class acquires the property of another class it is called inheritance.
Polymorphism :-It generally means more than one form
Explanation:
Encapsulation:- class is an example of encapsulation it can hold different data types and functions in a single container called class.
class Name{
public:
string first_name;
string last_name;
void Display()
{
cout<<first_name<<" "<<last_name<<endl;
}
};
Inheritance:-The property of a class acquiring the properties of another class is called inheritance.
Now we will inherit the above defined class.
class person: public Name
{
public:
char gender;
int age;
void Display()
{
cout<<first_name<<" "<<last_name<<gender<<age<<endl;
}
};
int main()
{
Name n;
person p;
n.Display();
p.Display();
}
Polymorphism- There are two types of polymorphism:-
1.Run time polymorphism=The values are decided at run time.
2.Compile time polymorphism=The values are decided at compile time.
Example:-In the above example we have function Display() in both the classes.This is an example of compile-time polymorphism. We are deciding at the time of compilation which display to use.
Answer:
Es muy importante que escriba su plan para la escuela secundaria antes de llegar a la escuela secundaria. Te da algo a lo que admirar cuando llegas a la escuela secundaria. Cuando lo complete, sabrá que hizo algo bien. Entonces puede establecer sus metas cada vez más altas, dándole la oportunidad de una buena vida.
Answer:
Speed = 0.866c
Where c is speed of light
Explanation:
We want to find the speed at which it run at a rate that is one-half the rate of a clock at rest.
Thus, we will use time dilation equation to solve it.
Thus;
t_o/√[1 - (v²/c²)] = 2t_o
Where:
t_o is time at rest
v is the speed at which it runs
c is the speed of light.
t_o will cancel out to give;
1/√[1 - (v²/c²)] = 2
Rearranging, we have;
√[1 - (v²/c²)] = ½
Let's make v the subject of the formula;
Let's square both sides to get;
1 - (v²/c²) = ½²
1 - (v²/c²) = ¼
Rearrange to get;
1 - ¼ = v²/c²
¾ = v²/c²
Take square root of both sides to get;
v/c = √¾
v = c × 0.866
v = 0.866c
Answer:
Mohammed doesn't believe the cyberbullying exists.
Explanation:
If he knew he wouldn't say they are teasing him. I mean, how would their parents know he is being cyberbullied without evidence? Text messages(such as imessages) are most likely on phones, and not on computers.(Unless its an mac I believe.) And they are bullying him; its not using technology positively.
I don't think we can answer this question because we don't know businesses in your area...