04-03-Object-Inheritance.html
			
			
			
				Dosyayı İndir 
			
			
				<html>
<head>
	<script>
		
	function Person(firstName,lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.fullName = function() {
			return this.firstName + " " + this.lastName;
		};
	}
	function Customer(firstName,lastName,totalDebit) {
		this.base=Person;
		this.base(firstName,lastName);
		this.totalDebit=totalDebit;
		this.displayText = function() {
			return this.fullName() + " : " + this.totalDebit;
		};
	}
	
	var mycustomer=new Customer("Mahsuni","�erif",4200);
	alert(mycustomer.displayText());
	
	</script>
</head>
<body>
	<h1>JavaScript Nesnelerde Kal�t�m</h1>
</body>
</html>
				
				Dosyayı İndir