What is encapsulation - What is Overriding
C Language Interview Question and Answers:31. What is encapsulation?
Containing and hiding information about an object, such as internal data structures and code. Encapsulation isolates the internal complexity of an object’s operation from the rest of the application.
32. What is a pointer variable?
A pointer variable is a variable that may contain the address of another variable or any valid address in the memory.
33. What is the term Polymorphism?
To override a method, a subclass of the class that originally declared the method must declare a method with the same name, return type (or a subclass of that return type), and same parameter list.
34. Define a class?
A class represents description of objects that share same attributes and actions. It defines the characteristics of the objects such as attributes and actions or behaviors. It is the blue print that describes objects.
35. What is Overriding?
The main difference between an array and a list is how they internally store the data. whereas Array is collection of homogeneous elements. List is collection of heterogeneous elements.
No comments:
Post a Comment