-
Inheritance
Which one of the following statements regarding C++ class inheritance is FALSE? a. Inheritance promotes generic design and code reuse.b. Struct cannot be inherited in C++. c. C++ supports multiple inheritance. d. Inheritance is a mechanism through which a subclass inherits the properties and behavior of its superclass.
-
Data Encapsulation
Which one of the statements concerning data encapsulation is FALSE? A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods provided by that object. B. Programmers can change the internal working of an object, but this may be transparent as long as the interface remains unchanged. C. Data encapsulation works well for...
-
Register Relation
Why p++ is faster than p+1?
-
Default Parameter
What is default parameter? Can a overloaded function have a default parameter?
-
Do Nothing Constructor
What are Default Constructor and Do Nothing Constructor
-
To calculate distance between two text strings
Give an algorithm that calculates the distance between two text strings (only operations you can have are: delete, add, and change, one by one).
-
Strings as input
Implement an algorithm that takes two strings as input, and returns the intersection of the two, with each letter represented at most once. Speed it up and test it.
-
-
-
-
-
-
-
-
-
-
-
-
What is abstraction?
Abstraction is of the process of hiding unwanted details from the user.