#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
wow *b;
a.x = 22;
b = &a;
a.x = 23;
cout << b->x;
return 0;
}
Write pseudo code for push in a stack?
What is a class and object?
Why do we use inheritance?
What is difference between new and malloc?
When you define a integer it gets stored in which data structure?(Stack or a heap)
write a C++ program for booking using constructor and destructor.
What are classes oop?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
What are the 4 pillars of oop?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }