#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;
}
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
How do you define a class in oop?
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.
why reinterpret cast is considered dangerous?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
features of OOPS
22 Answers Ness Technologies, Satyam,
all about pointers
What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
Where is pseudocode used?
Write a program to find out the number of palindromes in a sentence.
What is difference between #define and const?