Basic Definitions
Class :
A class is a blueprint or prototype from which objects are created.
(or)
A Class is a template or Blue print is used to bind or group the related data members along with its related functionalities
(or)
A class is a prototype that defines the variables and the methods common to all objects of a certain kind. Member Functions operate upon the member variables of the class.
(or)
A Class is a template or Blue print is used to bind or group the related data members along with its related functionalities
(or)
A class is a prototype that defines the variables and the methods common to all objects of a certain kind. Member Functions operate upon the member variables of the class.
Object :
Objects is instance of a class it contains state and behaviors, State is nothing but variables and behavior is nothing but methods.
(or)
The concept of allocating memory space for non-static members of a class dynamically at run-time is know as object.
Encapsulation :
Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data encapsulation.
(or)
Encapsulation is a way to obtain "information hiding". Encapsulation is to hide the variables or something inside a class, preventing unauthorized parties to use. So the public methods like getter and setter access it and the other classes call these methods for accessing".
Encapsulation is a way to obtain "information hiding". Encapsulation is to hide the variables or something inside a class, preventing unauthorized parties to use. So the public methods like getter and setter access it and the other classes call these methods for accessing".
Polymorphism :
The concept defining multiple functioinalities or logics with the same name to perform the same operations.
Inheritance :
The concept of using the properties of one class into another class without using class or ref variable.
Interface :
A collection of methods with no implementation is called an interface. An Interface is contract between a class and the outside world. When a class implements a interface, it promises to provide the behavior published by that interface.
(or)
Interface is a syntax or structure is used to provide specifications and default implementations.
(or)
Interface is a syntax or structure is used to provide specifications and default implementations.
Abstract Class :
An abstract class is a class that is declared abstract. It may or may not include abstract methods. Abstract class cannot be instantiated, but they can be subclassed.
(or)
Abstract class is a syntax or structure is used to provide both specifications (Abstract Methods) and implementations (Concrete methods).
(or)
Abstract class is a syntax or structure is used to provide both specifications (Abstract Methods) and implementations (Concrete methods).
Comments
Post a Comment