Posts

Showing posts from January, 2023

what is operator overloading?

what is operator overloading? Operator overloading is a feature in some programming languages that allows operators (such as + or *) to have different meanings depending on the context in which they are used. This allows developers to create custom classes and objects that can be used with the same operators as built-in types. For example, a developer could overload the + operator to add two objects of a custom class together in a way that is specific to that class, rather than using the default behavior of the operator. This can make code more readable and expressive. what do you mean by abstraction ? Abstraction is a technique used in computer science and software engineering to simplify complex systems by hiding the details of their implementation and focusing on their functionality or interface. It involves breaking down a system into smaller, more manageable parts and encapsulating each part's implementation details behind a simplified interface. In Object-oriented p...

compellation process of c#

compellation process of c# In C#, the process of making a method or property of a class mandatory to be overridden by a derived class is called method overriding. This is achieved by using the "override" keyword when declaring the method or property in the derived class. The method or property being overridden is also marked with the "virtual" keyword in the base class. explain identifiers and keywords used in C# In C#, identifiers are used to name variables, methods, classes, and other elements of the program. They follow certain rules such as: ·          They must begin with a letter, an underscore (_), or a Unicode character that is classified as a letter. ·          Subsequent characters can be letters, digits, underscores, or Unicode characters that are classified as letters. ·          They cannot be a keyword or a Boolean literal. · ...