If you're using a computer, you can take a picture on a camera, copy the picture to your computer to upload to Brainly.
If you're using a phone, you can easily upload pictures in the brainly App when you ask a question! just hit the camera button on the bottom left.
Answer:
// C++ program to demonstrate inheritance
#include <iostream>
using namespace std;
// base class
class Animal {
public:
void eat() {
cout << "I can eat!" << endl;
}
void sleep() {
cout << "I can sleep!" << endl;
}
};
// derived class
class Dog : public Animal {
public:
void bark() {
cout << "I can bark! Woof woof!!" << endl;
}
};
int main() {
// Create object of the Dog class
Dog dog1;
// Calling members of the base class
dog1.eat();
dog1.sleep();
// Calling member of the derived class
dog1.bark();
return 0;
}
ASDF JKL; are the home row keys.
To understand flow of programming logic flow chat technique been used. Once end user starts any learning programming flow chat design been learned and corrected the mistake. After success of flow chat design end user been advice to do programming and tested in computer.
<u>Explanation:</u>
In flow chart design is used for beginner level programming. Some time to make higher level managers to understand this flow chart design is used.
Flow chart has start, procedure, condition, function or procedure and end with stop diagrams.
Flow chart makes end user understand the flow of logics.
Suppose we need to do a process for a procedure, end user has to design with start flow chart symbol and put a procedure flow chart symbol with identification character, then end user has use same identification character and start designing the procedure in the flow chart diagram.
Procedure in flow char design is used to call same procedure number of time, so that repeated coding is avoided.