Let’s have
some fun!
Quiz Time
Form teams
Shout out
your answer
Each correct
answer => +1
(no minus marks!)
Winning team gets
chocolates!
LineNumberReader lnr =
new LineNumberReader(new BufferedReader(new FileReader(“./test.c")));
What design pattern
does the underlying
design follow?
It is “decorator”
pattern!
Identify this
person
Uncle Bob
(Robert C. Martin)
Calendar	calendar	=		b.set(YEAR,	2003)	
	 	 	 	 	 			 							.set(MONTH,	APRIL)	
	 	 	 	 	 	 							.set(DATE,	6)	
	 	 	 	 	 	 		.set(HOUR,	15)	
	 	 	 	 	 	 							.set(MINUTE,	45)	
	 	 	 	 	 	 		.set(SECOND,	22)	
	 	 	 	 	 	 							.setTimeZone(TimeZone.getDefault())	
	 	 	 	 	 	 												.build();
What design pattern
does the underlying
design follow?
Its “builder” pattern!
Name the first
object oriented
programming
language
Simula (1965!)
Who coined the
acronym “SOLID”?
(as in SOLID
principles)
Michael Feathers
Which software principle
says: "Objects in a program
should be replaceable with
instances of their subtypes
without altering the
correctness of that
program"?
Liskov’s
Substitution
Principle (LSP)
You have used dependency analysis tools on your code base. You
find numerous cycles and tangles in the dependencies. The
recommended approach to be followed is:
A. Adopt Domain Driven Design (DDD)
B. Adopt Test Driven Development (TDD) approach
C. Perform architecture refactoring
D. Use profiling tools to find “hotspots” and remove the
bottlenecks
C. Perform
architecture
refactoring
What is this
matrix known as?
Design
Structure
Matrix (DSM)
Who coined the
term “code
smell”?
Kent Beck
Identify the
underlying design
pattern
Its
“template method”
design pattern!
IMAGE CREDITS
• http://i.stack.imgur.com/8sNfT.jpg
• https://pbs.twimg.com/profile_images/2550670043/xq10bqclqpsezgerjxhi.jpeg
• https://pbs.twimg.com/media/CB_BiNJWgAAm73k.jpg
• http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=http://mmbiz.qpic.cn/mmbiz/
NVvB3l3e9aF3unjxG2uvpRKvtKvsljAejWAdNqibeEP8LchicEhkL6iaej5DJibVtn56BYL3DvMwmntZy6znN7KN0A/0?wx_fmt=jpeg
• http://tiny-giant-books.com/img/Uncle-Bob-Transparent-Background.png
• http://images.techtimes.com/data/images/full/102658/11018805_895801337108779_8220057388801140003_n-png.png?w=600
• http://cdn.meme.am/instances/500x/62194906.jpg
• http://images.techtimes.com/data/images/full/102654/minions.jpg?w=600
• https://s-media-cache-ak0.pinimg.com/736x/80/d7/63/80d76305e1eaaeb4933470098629e7cf.jpg
• http://www.momdoesreviews.com/wp-content/uploads/2015/05/minions-good-luck.jpg
• http://cdn.business2community.com/wp-content/uploads/2013/07/How-to-Answer-the-Question.jpg
Object Oriented Design - Quiz

Object Oriented Design - Quiz