Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Babu Zohaib




Posted Questions


No Question(s) posted yet!

Posted Answers



Answer


Open the Amazon VPC console at https://console.aws.amazon.com/vpc/. In the navigation pane, choose Your VPCs or Subnets. Select your VPC or subnet, and choose Flow Logs. Information about the flow logs is displayed on the tab.


Answer is posted for the following question.

How to check if vpc flow logs are enabled?

Answer


You cannot claim if you have resigned, been suspended or absconded from work You may claim if the Commission for Conciliation, Mediation and Arbitration (CCMA) considers the resignation as a constructive dismissal To qualify for benefits, you must register as a work seeker


Answer is posted for the following question.

How to claim uif when dismissed?

Answer


How to enter the unlock code provided by your phone carrier to unlock your Galaxy phone · 1 Power off the device · 2 Insert the alternative


Answer is posted for the following question.

How to unlock code on phone?

Answer


1
geeks for geeks numpy

Answer is posted for the following question.

How to geeks for geeks numpy (Python Programing Language)

Answer


1
Inheritance is one of the key features of Object-oriented programming in C++.
2
It allows us to create a new class (derived class) from an existing class (base class).
3
4
The derived class inherits the features from the base class and can have additional features of its own. 
5
  For example,
6
7
class Animal {
8
    // eat() function
9
    // sleep() function
10
};
11
12
class Dog : public Animal {
13
    // bark() function
14
};
15
Here, the Dog class is derived from the Animal class. 
16
Since Dog is derived from Animal, members of Animal are accessible to Dog.
17
18
Notice the use of the keyword public while inheriting Dog from Animal.
19
20
class Dog : public Animal {...};
21
We can also use the keywords private and protected instead of public
22
23
Example:
24
// C++ program to demonstrate inheritance
25
26
#include 
27
using namespace std;
28
29
// base class
30
class Animal {
31
32
   public:
33
    void eat() {
34
        cout << "I can eat!" << endl;
35
    }
36
37
    void sleep() {
38
        cout << "I can sleep!" << endl;
39
    }
40
};
41
42
// derived class
43
class Dog : public Animal {
44
 
45
   public:
46
    void bark() {
47
        cout << "I can bark! Woof woof!!" << endl;
48
    }
49
};
50
51
int main() {
52
    // Create object of the Dog class
53
    Dog dog1;
54
55
    // Calling members of the base class
56
    dog1.eat();
57
    dog1.sleep();
58
59
    // Calling member of the derived class
60
    dog1.bark();
61
62
    return 0;
63
}
64
Output
65
66
I can eat!
67
I can sleep!
68
I can bark! Woof woof!!
69
Here, dog1 (the object of derived class Dog) can access members of the base class Animal.
70
It's because Dog is inherited from Animal.

Answer is posted for the following question.

How to What is the meaning of inheritance in C++. Write an example of simple inheritance. (C++ Programming Language)


Wait...