![]() There are two types of arguments: Call by Value (changes made inside the function don’t affect outside) and Call by Reference (changes inside and outside). It’s called before an object is destroyed. The finalize method helps clean up resources that are not currently in use. It’s a way to make quick decisions in code. The ternary operator is an operator that takes three arguments and behaves based on those arguments. It can have abstract methods that must be defined by its child classes. It’s like a template for other classes to inherit from. What is an Abstract Class?Īn abstract class can’t be instantiated. It can be single (one parent class) or multiple (depends on multiple classes). Inheritance is when one class shares the structure and behavior defined in another class. It means one thing can take multiple forms. Polymorphism is when a subclass gives its own behavior or value to something that was already defined in the main class. There are different levels of access like public, protected, and private. It restricts access to the data to only the members of that class. What is Encapsulation?Įncapsulation is about keeping data hidden within an object. It has its own characteristics, behavior, and identity. What is an Object?Īn object is a specific instance of a class. What is a class?Ī class is like a blueprint or template that describes the details of an object. Each object is like a real-world thing and follows a blueprint called a class. It’s a way of writing computer programs where we think about the program as a collection of objects. ![]() OOPS stands for Object-Oriented Programming. 50+ OOPs Interview Questions and Answers OOPs Interview Questions and Answers in 2023 What is OOPS?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |