Babu Zohaib
About
-
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.
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
geeks for geeks numpy
Source: Tutorials Point
Answer is posted for the following question.
How to geeks for geeks numpy (Python Programing Language)
Answer
Inheritance is one of the key features of Object-oriented programming in C++.
It allows us to create a new class (derived class) from an existing class (base class).
The derived class inherits the features from the base class and can have additional features of its own.
For example,
class Animal {
// eat() function
// sleep() function
};
class Dog : public Animal {
// bark() function
};
Here, the Dog class is derived from the Animal class.
Since Dog is derived from Animal, members of Animal are accessible to Dog.
Notice the use of the keyword public while inheriting Dog from Animal.
class Dog : public Animal {...};
We can also use the keywords private and protected instead of public
Example:
// C++ program to demonstrate inheritance
#include
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;
}
Output
I can eat!
I can sleep!
I can bark! Woof woof!!
Here, dog1 (the object of derived class Dog) can access members of the base class Animal.
It's because Dog is inherited from Animal.
Source: StackOverFlow
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)