Object Oriented Programming Concepts
What are the principle concepts of OOPS?
There are four principle concepts upon which object oriented design and programming rest. They are:
There are four principle concepts upon which object oriented design and programming rest. They are:
What is Abstraction?
Abstraction refers to the act of representing essential features without including the background details or explanations. Abstraction focus on what the object does instead of how it does it.
Abstraction refers to the act of representing essential features without including the background details or explanations. Abstraction focus on what the object does instead of how it does it.
What is Encapsulation?
Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object. Encapsulation means hiding the internal details or mechanics of how an object does something.
Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object. Encapsulation means hiding the internal details or mechanics of how an object does something.
What is Inheritance?
Inheritance is the process by which objects of one class acquire the properties of objects of another class.
Inheritance is the process by which objects of one class acquire the properties of objects of another class.
What is Polymorphism?
Polymorphism is briefly described as “one interface, many implementations.” Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as a variable, a function, or an object to have more than one form.
Polymorphism is briefly described as “one interface, many implementations.” Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as a variable, a function, or an object to have more than one form.
What is a marker interface?
Marker interfaces are those which do not declare any required methods, but signify their compatibility with certain operations. The java.io.Serializable interface and Cloneable are typical marker interfaces. These do not contain any methods, but classes must implement this interface in order to be serialized and de-serialized.
Marker interfaces are those which do not declare any required methods, but signify their compatibility with certain operations. The java.io.Serializable interface and Cloneable are typical marker interfaces. These do not contain any methods, but classes must implement this interface in order to be serialized and de-serialized.
No comments:
Post a Comment