OOPS (Classes, Objects, Methods, Unified Modelling Language) Flashcards
What is a class?
A template for an object which defines its attributes and methods
What is an object?
An instance of a class
What is a constructor?
A method to create a new object in a class
What is instantiation?
Creating an instance of an object
What is polymorphism?
The ability of a programming language to process objects differently depending on their class
What is inheritance?
Inheritance is the procedure in which one class inherits the attributes and methods of another class. The class whose properties and methods are inherited is known as the Parent class.
What is encapsulation
It wraps the attributes and methods on the class definition, hiding details of the implementation from the user
What is an OOP?
Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has unique attributes and behavior.