SlideShare uma empresa Scribd logo
1 de 3
Baixar para ler offline
1) What are the differences between TypeOf() and GetType()?

  S.N   TypeOf()                           GetType()
  o
  1     Its an operator                    Its a method
  2     Can't be overloaded                Has lot of overloads


2) What are the differences between const and readonly?

  S.N   const                              readonly
  o
  1     It cannot be static                It can be instance level or static
  2     It is evaluated at design time     It is evaluated at run time
  3     It is initialized at declaration   It is initialized at declaration and in
                                           constructor
  4     It must be of integral type or     In addition, it can have complex
        enumeration                        types with new keyword and
                                           enumerations are not allowed


3) What are the Differences between Abstract Class and Interface?

  S.N   Abstract Class                     Interface
  o
  1     It can have implemented            It cannot have implemented
        Methods                            Methods
  2     A class can inherit only one       A Class can implement any number
        abstract class                     of Interfaces
  3     We go for Abstract classes on      We go for Interface on such
        such situations where we need      situations where we need to give
        to give common functionality for   common functionality for group of
        group of related classes           un-related classes
  4     If we add a new method, then       If we add a new method, then we
        we can provide a default           need to change all the existing work
        implementation and so no need
        to make any change to existing
        work
  5     Static and Instance constants      Only Static constants are possible
        are possible




4) What are the differences between Structure and Class?

  S.N   Structure                          Class
  o
  1     It is value type                   It is reference type
  2     It is stored on stack              It is stored on heap
3    It does not support inheritance It supports inheritance
   4    It is suitable for small data   It is suitable for complex data
        structure                       structures
5) What are the differences between property and indexer?

   S.N   Property                         Indexer
   o
   1     A property can be static         An indexer is always an instant
         member                           member
   2     The get accessor of a property   The get accessor of an indexer
         corresponds to a method with     corresponds to the same formal
         no parameters                    parameter lists as the indexer


6) What are the differences between overloading and overriding?

   S.N   Overloading                      Overriding
   o
   1    Same name in same / derived        We need to provide different
        class but with different / type of implementation than base class
        parameter
   2    Has different signature            Has same signature
   3    Otherwise called Compile-time      Otherwise called Run-time
        Polymorphism                       Polymorphism
7) What is the difference between Write() and WriteLine() methods?

   S.N   Write()                          WriteLine()
   o
   1     Write() method outputs one or    WriteLine() method outputs one or
         more values to the screen        more values to the screen with a
         without a newline character      newline character


8) What is the difference between Read() and ReadLine() methods?

   S.N   Read()                           ReadLine()
   o
   1     Read() method returns a single   ReadLine() method returns a string
         character as int                 containing a line of text




9) What is the difference between ref and out parameters?

   S.N   Ref parameter                    Out parameter
   o
   1     An argument passed to a ref      An argument passed to an output
         parameter must be first          parameter does not need to be
         initialized                      explicitly initialized
10)     What are the differences between Value Types and Reference
   Types?

  S.N   Value Types                        Reference Types
  o
  1     It is stored on stack              It is stored on heap
  2     It can be accessed directly        It can be accessed through
                                           references
  3     Life time of value type is         Lifetime of reference type is
        determined by lifetime of          managed by .net framework
        variable that contain them
  4     Examples: All numeric data         Examples: All arrays, String, Class
        type, Boolean, char, Date,         types, Delegate
        Structure, enumerations


  Note: Object is not any kind of type. You can create object of structure as
  well as Class

  Are not type: Namespaces, Modules, Events, properties, procedures,
  variables, constants, & fields.

Mais conteúdo relacionado

Mais procurados

Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answersMadhavendra Dutt
 
Object Oriented Principles
Object Oriented PrinciplesObject Oriented Principles
Object Oriented PrinciplesSujit Majety
 
Method Overloading in Java
Method Overloading in JavaMethod Overloading in Java
Method Overloading in JavaDelowar Hossain
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - PolymorphismMudasir Qazi
 
Doppl development iteration #2
Doppl development   iteration #2Doppl development   iteration #2
Doppl development iteration #2Diego Perini
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python Home
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variablesRavi_Kant_Sahu
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionPritom Chaki
 
OOP in C#
OOP in C#OOP in C#
OOP in C#DevMix
 
Complete java&j2ee
Complete java&j2eeComplete java&j2ee
Complete java&j2eeShiva Cse
 

Mais procurados (18)

Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
 
Object Oriented Principles
Object Oriented PrinciplesObject Oriented Principles
Object Oriented Principles
 
Method Overloading in Java
Method Overloading in JavaMethod Overloading in Java
Method Overloading in Java
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - Polymorphism
 
Polymorphism in oop
Polymorphism in oopPolymorphism in oop
Polymorphism in oop
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
 
Doppl development iteration #2
Doppl development   iteration #2Doppl development   iteration #2
Doppl development iteration #2
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
 
C# interview questions
C# interview questionsC# interview questions
C# interview questions
 
javainterface
javainterfacejavainterface
javainterface
 
Abstract class in java
Abstract class in javaAbstract class in java
Abstract class in java
 
Answer key1fer
Answer key1ferAnswer key1fer
Answer key1fer
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
 
Javapolymorphism
JavapolymorphismJavapolymorphism
Javapolymorphism
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
 
Complete java&j2ee
Complete java&j2eeComplete java&j2ee
Complete java&j2ee
 

Destaque

App prizes value deck for stickrun
App prizes value deck  for stickrunApp prizes value deck  for stickrun
App prizes value deck for stickrunAppPrizes Inc
 
Interview preparation techniques
Interview preparation techniquesInterview preparation techniques
Interview preparation techniquesUmar Ali
 
AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes Inc
 
App prizes value prop deck
App prizes  value prop deckApp prizes  value prop deck
App prizes value prop deckAppPrizes Inc
 
Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Umar Ali
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmasdelta0ne
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmasdelta0ne
 
Asp.Net Abbreviations
Asp.Net AbbreviationsAsp.Net Abbreviations
Asp.Net AbbreviationsUmar Ali
 
OOPs difference faqs- 4
OOPs difference faqs- 4OOPs difference faqs- 4
OOPs difference faqs- 4Umar Ali
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdataUmar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlightUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 

Destaque (12)

App prizes value deck for stickrun
App prizes value deck  for stickrunApp prizes value deck  for stickrun
App prizes value deck for stickrun
 
Interview preparation techniques
Interview preparation techniquesInterview preparation techniques
Interview preparation techniques
 
AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc
 
App prizes value prop deck
App prizes  value prop deckApp prizes  value prop deck
App prizes value prop deck
 
Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Islamic knowledge in tamil-1
Islamic knowledge in tamil-1
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
 
Asp.Net Abbreviations
Asp.Net AbbreviationsAsp.Net Abbreviations
Asp.Net Abbreviations
 
OOPs difference faqs- 4
OOPs difference faqs- 4OOPs difference faqs- 4
OOPs difference faqs- 4
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdata
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 

Semelhante a OOPs Difference FAQs

Semelhante a OOPs Difference FAQs (20)

Intervies
InterviesIntervies
Intervies
 
Interview Questions and Answers for Java
Interview Questions and Answers for JavaInterview Questions and Answers for Java
Interview Questions and Answers for Java
 
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
 
Interfaces
InterfacesInterfaces
Interfaces
 
Core java interview faq
Core java interview faqCore java interview faq
Core java interview faq
 
Day3
Day3Day3
Day3
 
EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
 
CORBA IDL
CORBA IDLCORBA IDL
CORBA IDL
 
what is differance between abstract class and interface ppt
what is differance between abstract class and interface pptwhat is differance between abstract class and interface ppt
what is differance between abstract class and interface ppt
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Asp.net main
Asp.net mainAsp.net main
Asp.net main
 
Faqs in java
Faqs in javaFaqs in java
Faqs in java
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
 
Javainterview
JavainterviewJavainterview
Javainterview
 
Core java interview questions1
Core java interview questions1Core java interview questions1
Core java interview questions1
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Java Notes
Java NotesJava Notes
Java Notes
 

Mais de Umar Ali

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web apiUmar Ali
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcUmar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcUmar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1 Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences ListUmar Ali
 

Mais de Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Último (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

OOPs Difference FAQs

  • 1. 1) What are the differences between TypeOf() and GetType()? S.N TypeOf() GetType() o 1 Its an operator Its a method 2 Can't be overloaded Has lot of overloads 2) What are the differences between const and readonly? S.N const readonly o 1 It cannot be static It can be instance level or static 2 It is evaluated at design time It is evaluated at run time 3 It is initialized at declaration It is initialized at declaration and in constructor 4 It must be of integral type or In addition, it can have complex enumeration types with new keyword and enumerations are not allowed 3) What are the Differences between Abstract Class and Interface? S.N Abstract Class Interface o 1 It can have implemented It cannot have implemented Methods Methods 2 A class can inherit only one A Class can implement any number abstract class of Interfaces 3 We go for Abstract classes on We go for Interface on such such situations where we need situations where we need to give to give common functionality for common functionality for group of group of related classes un-related classes 4 If we add a new method, then If we add a new method, then we we can provide a default need to change all the existing work implementation and so no need to make any change to existing work 5 Static and Instance constants Only Static constants are possible are possible 4) What are the differences between Structure and Class? S.N Structure Class o 1 It is value type It is reference type 2 It is stored on stack It is stored on heap
  • 2. 3 It does not support inheritance It supports inheritance 4 It is suitable for small data It is suitable for complex data structure structures 5) What are the differences between property and indexer? S.N Property Indexer o 1 A property can be static An indexer is always an instant member member 2 The get accessor of a property The get accessor of an indexer corresponds to a method with corresponds to the same formal no parameters parameter lists as the indexer 6) What are the differences between overloading and overriding? S.N Overloading Overriding o 1 Same name in same / derived We need to provide different class but with different / type of implementation than base class parameter 2 Has different signature Has same signature 3 Otherwise called Compile-time Otherwise called Run-time Polymorphism Polymorphism 7) What is the difference between Write() and WriteLine() methods? S.N Write() WriteLine() o 1 Write() method outputs one or WriteLine() method outputs one or more values to the screen more values to the screen with a without a newline character newline character 8) What is the difference between Read() and ReadLine() methods? S.N Read() ReadLine() o 1 Read() method returns a single ReadLine() method returns a string character as int containing a line of text 9) What is the difference between ref and out parameters? S.N Ref parameter Out parameter o 1 An argument passed to a ref An argument passed to an output parameter must be first parameter does not need to be initialized explicitly initialized
  • 3. 10) What are the differences between Value Types and Reference Types? S.N Value Types Reference Types o 1 It is stored on stack It is stored on heap 2 It can be accessed directly It can be accessed through references 3 Life time of value type is Lifetime of reference type is determined by lifetime of managed by .net framework variable that contain them 4 Examples: All numeric data Examples: All arrays, String, Class type, Boolean, char, Date, types, Delegate Structure, enumerations Note: Object is not any kind of type. You can create object of structure as well as Class Are not type: Namespaces, Modules, Events, properties, procedures, variables, constants, & fields.