Some scenarios I came across while working with C# where OOPs funda deviated at some level to provide more flexibility. Suggest me some more scenarios if I miss anyone.
Test-driven development" refers to a style of programming in which three activities are tightly interwoven: coding, testing (in the form of writing unit tests) and design (in the form of refactoring).
In this session you learn about
1. How to download and install java in your PC
2, How to write simple Java Program
3. Operators in Java
4. Types of operators
i) Arithmetic operators
ii) Relational operators
iii) Logical operators
iv)Ternary operator
v) Bitwise operators
vi) Assignment operators
vii) Unary operators
viii) Special operators
5. Operators precedence
MATLAB Script or programs are sequences of MATLAB commands saved in plain text files. When you type the name of the script file at the MATLAB prompt the commands in the script file are executed as if you had typed them in command window. Code for a script is done in an Editor window and saved as m-file.
In case your code has errors, MATLAB will show an error message in the command window, when you try to run the program .
Error message will be hyperlinked to the line in the file that caused the error.
Mvc interview questions – deep dive jinal desaijinaldesailive
Can you describe ASP.NET MVC Request Life Cycle? 1. Receive request, look up Route object in RouteTable collection and create RouteData object. 2. Create RequestContext instance. 3. Create MvcHandler and pass RequestContext to handler. 4. Identify IControllerFactory from RequestContext. 5. Create instance of class that implements ControllerBase. 6. Call MyController.Execute method. 7. The ControllerActionInvoker determines which action to invoke on the controller and executes the action on the controller, which results in calling the model and returning a view.
Test-driven development" refers to a style of programming in which three activities are tightly interwoven: coding, testing (in the form of writing unit tests) and design (in the form of refactoring).
In this session you learn about
1. How to download and install java in your PC
2, How to write simple Java Program
3. Operators in Java
4. Types of operators
i) Arithmetic operators
ii) Relational operators
iii) Logical operators
iv)Ternary operator
v) Bitwise operators
vi) Assignment operators
vii) Unary operators
viii) Special operators
5. Operators precedence
MATLAB Script or programs are sequences of MATLAB commands saved in plain text files. When you type the name of the script file at the MATLAB prompt the commands in the script file are executed as if you had typed them in command window. Code for a script is done in an Editor window and saved as m-file.
In case your code has errors, MATLAB will show an error message in the command window, when you try to run the program .
Error message will be hyperlinked to the line in the file that caused the error.
Mvc interview questions – deep dive jinal desaijinaldesailive
Can you describe ASP.NET MVC Request Life Cycle? 1. Receive request, look up Route object in RouteTable collection and create RouteData object. 2. Create RequestContext instance. 3. Create MvcHandler and pass RequestContext to handler. 4. Identify IControllerFactory from RequestContext. 5. Create instance of class that implements ControllerBase. 6. Call MyController.Execute method. 7. The ControllerActionInvoker determines which action to invoke on the controller and executes the action on the controller, which results in calling the model and returning a view.
Get More on http://www.ManzoorTheTrainer.com
This eBook contains 109 important interview questions along with answers that any web developer looking for a job on MS.Net platform needs to know. This eBook starts with two articles one of which talks about why most of the engineers are jobless and the other say the solution for it. As a technical part I have covered the following MS.Net technologies ASP.Net, C#.Net & ADO.Net and MS SQL Server.
Second edition is also on the way with focus on at least one real time example on each question.
Key features: Point to point | Simple language
For more classes visit
www.snaptutorial.com
General Instructions
Exercises 1, 2, 4, and 5 use the programs in DocSharinglabeled “User-defined classes."
Exercises 7 and 8 use the programs in DocSharinglabeled “Using interfaces."
Indicate whether each of the following statements is true or false.docxmigdalialyle
Indicate whether each of the following statements is true or false:
An abstract class can have ordinary methods but an interface cannot.
An abstract class cannot have any constructors.
No class can implement more than one interface.
It is not possible to create an instance of an abstract class.
All methods of an interface are implicitly public.
Why won't the following program compile? Correct it so that it will compile and properly implement
Comparable
.
class Int implements Comparable
{
private int x;
public Int(int x)
{
this.x = x;
}
public int compareTo(Int other)
{
return x - other.x;
}
}
What is the output of the following program?
class A
{
public A()
{
System.out.println(
"The default constructor of A is invoked");
}
}
class B extends A
{
public B()
{
System.out.println(
"The default constructor of B is invoked");
}
}
public class C
{
public static void main(String[] args)
{
B b = new B();
}
}
Given the following class and interface definitions:
class Base
{
...
}
interface Spec
{
...
}
class Derived extends Base implements Spec
{
}
For each of the following declarations, indicate whether it is correct or incorrect and provide an explanation.
Derived object2 = new Base();
Spec object3 = new Derived();
Spec object4 = new Base();
Base object1 = new Derived();
Derived object5 = new Spec();
Indicate whether each of the following will compile and if not, correct it so it will.
class Class1
{
abstract void method1()
{
}
}
abstract class Class2
{
abstract void method2();
void method3();
}
.
For more classes visit
www.snaptutorial.com
General Instructions
Exercises 1, 2, 4, and 5 use the programs in DocSharinglabeled “User-defined classes."
Exercises 7 and 8 use the programs in DocSharinglabeled “Using interfaces."
Still Comparing "this" Pointer to Null?Andrey Karpov
This is a translation of an article written by Dmitry Meshcheryakov, an ABBYY employee and first published here: "ABBYY blog. Still Comparing "this" Pointer to Null?". Translation done and published with permission of the copyright holder.
C++ (pronounced "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.
The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™UiPathCommunity
In questo evento online gratuito, organizzato dalla Community Italiana di UiPath, potrai esplorare le nuove funzionalità di Autopilot, il tool che integra l'Intelligenza Artificiale nei processi di sviluppo e utilizzo delle Automazioni.
📕 Vedremo insieme alcuni esempi dell'utilizzo di Autopilot in diversi tool della Suite UiPath:
Autopilot per Studio Web
Autopilot per Studio
Autopilot per Apps
Clipboard AI
GenAI applicata alla Document Understanding
👨🏫👨💻 Speakers:
Stefano Negro, UiPath MVPx3, RPA Tech Lead @ BSP Consultant
Flavio Martinelli, UiPath MVP 2023, Technical Account Manager @UiPath
Andrei Tasca, RPA Solutions Team Lead @NTT Data
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
OOPS With CSharp - Jinal Desai .NET
1. Articles from Jinal Desai .NET
OOPS With CSharp
2012-11-10 13:11:59 Jinal Desai
Some scenarios I came across while working with C# where OOPs funda deviated
at some level to provide more flexibility. Suggest me some more scenarios if I miss
anyone.
Scenario # 1.
Two interface having same method signature is derived by a class.
How to implement methods in a class with same signature from different
interfaces?
We can use named identifiers to identify the common method we implemented
based on two different interfaces.
i.e. If there is two interfaces i1 and i2, both has one method with same signature
(void test(int a)), then at the time of implementing these methods inside class “abc”
we can use i1.test and i2.test to differentiate the implementation of methods from
two different interfaces having same signature.
Interface i1
{
void test(int a);
}
interface i2
{
void test(int a);
}
public class abc: i1, i2
{
void i1.test(int a)
{
Console.WriteLine(“i1 implementation: “ + a);
}
void i2.test(int a)
{
Console.WriteLine(“i2 implementation: “ + a);
}
}
Note : The only thing that can be noted here is that at the time of implementing test()
methods from two different interfaces in a single class, the public modifier is not
2. required. If you define public modifier for the implementation of test() method in
class “abc” then it will give you error “The modifier ‘public’ is not valid for this item”.
How to call those implemented methods from another class?
To access methods implemented in a class “abc” into another class, we need to
use respected interface rather than class “abc”.
i.e. If I need to use method of interface i1 then I need to do code as follow.
i1 testi1=new abc();
i1.test(10);
Above code will call test() method of interface i1. In the similar manner we can call
test() method of interface i2. If we need to call both the method with one instance of
class “abc” then we need to cast “abc” class into an interface of which method we
are intended to call as demonstrated below.
abc testabc=new abc();
(testabc as i1).test(10);
(testabc as i2).test(10);
What if I has a method inside class “abc” with same signature prototyped in
interface i1 and i2 (those interfaces we have implemented in class “abc”)?
In that case we can call the method in a normal way with the instance of class
“abc”.
i.e.
public class abc: i1, i2
{
void i1.test(int a)
{
Console.WriteLine(“i1 implementation: “ + a);
}
void i2.test(int a)
{
Console.WriteLine(“i2 implementation: “ + a);
}
void test(int a)
{
Console.WriteLine(“Normal method inside the class: ” + a);
}
}
//To call the method normally.
abc testabc=new abc();
testabc.test(10);
How we can access implemented method of i1 from inside the implemented
3. method of i1, in a class “abc” or vice-versa?
It’s simple. We need to cast “this” into respected interface to use it’s method.
i.e.
public class abc: i1, i2
{
void i1.test(int a)
{
Console.WriteLine(“i1 implementation: “ + a);
}
void i2.test(int a)
{
Console.WriteLine(“i2 implementation: “ + a);
(this as i1).test(a + 20);
}
}
Scenario #2
Which are the things allowed inside an interface in case of C#? (In other way
can automated property/event/delegate…etc allowed inside an interface
while using C#.NET?)
First thing first is method signature can be declared in an interface, it is the purpose
of an interface. Except method signature, property declaration and event declaration
are also allowed inside an interface.
Property Declaration inside an Interface
interface Itest
{
int a { get; set; }
int b { get; set; }
}
The only thing you need to care here is that, you need to implement these properties
in an implemented class. Compiler will not understand these declared properties as
automated properties. In a class if we write properties like this then it should be
considered as an automated properties, implementation is not required in that case.
i.e. Implementation of properties defined in Itest
class Test:ITest
{
int aVar = 0;
int bVar = 0;
public int a
{
get
{
4. return aVar;
}
set
{
aVar = value;
}
}
public int b
{
get
{
return bVar;
}
set
{
bVar = value;
}
}
}
Event Declaration inside an Interface
public delegate void ChangedEventHandler
(object sender, EventArgs e);
interface Itest
{
event ChangedEventHandler Changed;
}
Now to use this event inside the implemented class, following is an example.
Class Test: Itest
{
public void BindEvent()
{
if(ChangedEventHandler!=null)
Changed+=new ChangedEventHandler(Test_Changed);
}
void Test_Changed(object sender, EventArgs e)
{
//Event Fired
}
}
This way you can confirm that all the implementer classes implemented the event to
become sync with the interface design. So that all the classes can be called in a
similar pattern designed by an interface.
Scenario #3
5. I have one interface Itest as defined below.
Interface Itest
{
int sum(int a, int b);
}
I have implemented the interface into Calculator class as follow.
Class Calculator:ITest
{
public int sum(int a, int b)
{
return (a+b);
}
}
I have one more class named ScientificCalculator derived from Calculator class
having same method with same signature.
Class ScientificCalculator:Calculator
{
public int sum(int a, int b)
{
return base.sum(a,b);
}
}
Can it be possible to access sum method of calculator class if I created instance of
ScientificCalculator class by assigning it to interface Itest?.
i.e.
Itest itest = new ScientificCalculator();
Now is it possible to access sum method of Calculator class through object itest?
Yes, we can access it but for that we need to cast itest object into Calculator class.
((Calculator)itest).Sum(20, 30);
If you access directly sum method then it obviously refer sum method of class
ScientificCalculator.