-
Inheritance
What is inheritance? why we use it? plzz can anybody explain me with one example and where we use that concept?
-
Inline Function Advantages
What are the advantages of inline functions over macros?
-
Placement New Syntax
How can a C++ developer use the placement new syntax to make new allocate an object of class SomeClass at a particular memory address stored in a pointer type variable named pmem?A. new SomeClass(pmem);B. new(pmem) SomeClass;C. new SomeClass pmem;D. new pmem SomeClass;E. new (pmem, SomeClass);
-
-
-
Inheritance in C++
While doing inheritance in C++, one thing that is not inherited is what?
-
C/C++ black screen opens and closes
While executing a program in C++, it happens the black screen opens and closes automatically without displaying the output(program is correct). How to recover from this situation?
-
Read the following code and then implement the following parts:
Read the following code and then implement the following parts:
class Point {
public int xCoordinate;
public int yCoordinate;
}
1. Derive a class from Point and call it DerivedPoint, the new class will contain two constructors, the first one takes no arguments, it assigns the point to the point (1,1) and the second constructor takes two parameters... -
-
-
-
What is the difference between structures and classes in C++?
There is only one difference ,in classes the members are private by default whereas it is not so in structures.
-
-
Count Number of characters using Pointers
Write a program to count the number of characters in a string using pointers.
-
What do you mean by inheritance?
Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.
-
What is encapsulation?
Packaging an object’s variables within its methods is called encapsulation.
-
What do you mean by binding of data and functions?
Encapsulation.
-
-
-
Ans